I want to fold all of the functions on vim. My code is written by C language. How to do this?
PS: Functions in here is not enough! For better consideration, every thing which start by { and end by }.
I think a simple set foldmethod=syntax
in the .vimrc
should suffice for most file types. Check that you have a well-defined folding schema in /usr/share/vim/vim73/ftplugin/c.vim
.