I was originally going to release my .vimrc on the blog, but I’m in the process of repairing it up right now–so it might just confuse people. I will release it at a later time when it is stable(I cleaned it up to get rid of a problem I was having after creaing the ShowMeDo videos, in which i inadvertently destroyed the folding setup). Meanwhile, most of my file is derived from Amir Salihafendic’s vimrc file, available here.
A couple of things I changed from his suggestions:
- (Mac OS X only) I put the helper directory contents directly in the Vim.app package contents
- (possibly Mac OS X only)I turned off lazy redraw
Meanwhile, I was able to recover most of my folding stuff with the following commands. here is how folding should work(put this in your .vimrc–without the numbers of course):
That last line depends on your shiftwidth, which you can set by
set shiftwidth=2, for example. For a shiftwidth of 2, set foldlevel=1 seems to work fine. Also, for some reason, even though I enabled folding with the first command above, I still have to type in
zC in command mode to see the folding.
Hope this helps.