lang5 Blog

Syntax highlighting for vi

Published by ulmann on 2011-09-05
Did you know that there is a control file for syntax highlighting lang5 source code in vi?

All you have to do is to add the following lines to your .vimrc file in your home directory:
syntax on
au BufRead,BufNewFile *.5 set filetype=5
au! Syntax 5 source ~/lang5/trunk/lang5.vim

This assumes that your lang5 installation can be found in ~/lang5/trunk. If the location on your machine is different, all you have to do is to adapt the path to the file lang5.vim above.