DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:vim

Setup VIM for DokuWiki Development

VIM is a popular Open Source editor on Unix-like systems and also available on Windows and Mac.

To make it easier to adhere to our Coding Style you might want to use the following settings in your vimrc:

~/.vimrc
" enable syntax highlighting
syntax on
 
" Highlight redundant whitespaces and tabs.
highlight RedundantSpaces ctermbg=red guibg=red
match RedundantSpaces /\s\+$\| \+\ze\t\|\t/
 
" use 4 spaces instead of tabs
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
 
" always show ^M in DOS files
set fileformats=unix
devel/vim.txt · Last modified: 2014-10-20 01:06 by ach

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki