DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

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