Code Folding in vim

vimrc

Add to your `~/.vimrc`:
" Folding settings
set foldmethod=indent
set foldnetmax=10
set nofoldenable
set foldlevel=1

Keys

zaToggle current fold
zMFold everything
zm
zRUnfold everything
zr