VIM syntax highlighting for DokuWiki
written on Tuesday, October 4, 2011
Now, when it comes to editing, syntax highlighting is a very useful thing, especially for long files. VIM provides syntax files for more than 130 languages, even more can be found on vim-scripts. There is even syntax highlighting for DokuWiki available, but I was not very happy with it.
The colorschemes in use are neon and slate.
Just grab a copy of dokuwiki.vim and copy the file in your ~/.vim/syntax/ directory.
Since DokuWiki uses no particular file ending you need to set the filetype manually with the command :set ft=dokuwiki. You can use the DokuWiki comment plugin to automate the task. Simply append the line below to your wiki page:
/* vim: set ft=dokuwiki */
This line will only be visible while editing the wiki page.