HAI
CAN HAS ATTENTION?
About a year ago I wrote a blog post about syntax highlighting and indenting for lolcode in vim. A lot has happened with the programming language since then, and I haven’t had the time to update the two files.
Chris (aka cheepguava) was nice enough to do just that. The things he added includes multiline comments (OBTW … TLDR), special characters within strings (:) or :> or :o or :: or :”) and more language keywords to get it closer to the 1.2 spec.
You can find the tarball at http://www.indentedlines.net/lolcode/vim.tar.gz
Please note that you have to rename the two files to lolcode.vim
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
Thanks to Chris for helping out, and I hope you enjoy!
KTHXBYE