Add the following to your .vimrc:
set foldenable set foldmethod=syntax
Use :source ~/.vimrc to reload your .vimrc and watch the magic unfold. You can open and close a fold by using za
Add the following to your .vimrc:
set foldenable set foldmethod=syntax
Use :source ~/.vimrc to reload your .vimrc and watch the magic unfold. You can open and close a fold by using za