fold error in javascript.vim

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″.

Comments are closed.