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

Reference:
For more information about vim file types you might want to check out http://vimdoc.sourceforge.net/htmldoc/filetype.html

OpenLaszlo documentation on how to install Vim Syntax highlighting on linux based systems
http://wiki.openlaszlo.org/Editing_LZX#Installing_VIM_Syntax_Highlighting

Post a Comment

Your email is never shared. Required fields are marked *

*
*