Is there any way or tools to fold function in vim, like Visual Studio or Eclipse?
:set foldmethod=syntax
should fold all functions and other blocks automatically, if you have syntax file for your language.