Archive for March 17th, 2007

fold error in javascript.vim

Saturday, March 17th, 2007

I discovered Yi Zhao’s replacement for javascript.vim which has better syntax highlighting for .js files. One slight problem though – straight after I copied it into my ~/.vim/syntax directory all my fold settings stopped working.
To fix this edit javascript.vim and change “setlocal foldlevel=6″ to “setlocal foldlevel=0″.