You can now have syntax highlighting and indenting for lolcode in vim. You need the syntax file and the indent file.

Put the two files in $HOME/.vim/syntax and $HOME/.vim/indent respectively. You also need to have 'filetype plugin indent on' in your .vimrc file. Using 'syntax on' and 'filetype on' is also a good idea.

Because lolcode is a new filetype, you need to make sure it is detected by the system: 'mkdir ~/.vim/ftdetect'

Create a new file named lol.vim in that directory. In this file you need to have the following line:

au BufRead,BufNewFile *.lol set filetype=lolcode

implementations/vim-syntax-highlight.txt · Last modified: 2007/06/19 15:07 by atl
Recent changes RSS feed Creative Commons License Donate Driven by DokuWiki