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

9 comments:

施以王雅玲音 said...

留言支持你~希望能看到更好的作品 ............................................................

家唐銘 said...

人不能像動物一樣活著,而應該追求知識和美德............................................................

健林林豪 said...

向著星球長驅直進的人,反比踟躕在峽路上的人,更容易達到目的。............................................................

三妮 said...

如果擬任為輸贏是最重要的事,那你輸了................................................

黃智樺黃智樺 said...

困難的不在於新概念,而在於逃避舊有的概念。......................................................................

王辛江淑萍康 said...

好的部落格就要和好朋友分享--感謝分享..................................................

316 said...

Never put off till tomorrow what may be done today.......................................................................

彬彬哲宇 said...

人生中最好的禮物就是屬於自己的一部份............................. ....................................

惠NorrisBradwell041花 said...
This comment has been removed by a blog administrator.

About Me

My photo