Jul 25, 2010

Enable syntax highlight in vim for scala

This blog gives the instruction on how to enable color syntax in vim for scala. However when I follow the instruction to operate on my windows box I found it works correctly for my cygwin vim application, but does not work for windows gvim installation. After a few search on google, I found the problem is the rtp(runtimepath) of the different vim instance is different. cygwin vim automatically add ~/.vim in rtp, which stores the files of scala syntax, while windows gvim does not do the work. So the solution becomes obvious: Adding following line into your .vimrc file makes sure ~/.vim always loaded into runtime path, even on windows version:

set rtp^=~/.vim

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.