VIM plugin for make foldings as in traditional text editors and IDE.
Foldings based on indents and for multiline comments.
Example for JavaScript:
Example for Python:
For pathogen:
cd ~/.vim/bundle
git clone https://github.com/pavel-g/TrueFolds.git
Add into your .vimrc:
nmap <F12>fn :set foldenable foldmethod=expr foldexpr=TrueFoldsLevel(v:lnum)<CR>
GPLv3