OpenLaszlo Syntax Highlighting for MacVim/Vim

The OpenLaszlo documentation isn’t specific about how to install syntax highlighting for vim on mac. So we thought we would write up a little blurb about how to do it!

Copy the lzx.vim syntax file to dot vim directory in your home directory
cp openlaszlo/trunk/tools/lzx.vim ~/.vim/syntax/

Create a file called .vimrc.local for your custom vim modifications also in your home directory
mvim ~/.vimrc.local

Finally, add an autocommand that will auto detect the file type
au BufRead,BufNewFile *.lzx set ft=lzx

For more information about vim file types you might want to check out

OpenLaszlo documentation on how to install Vim Syntax highlighting on linux based systems

Post a Comment

Your email is never shared. Required fields are marked *