I have to read a few giant Perl scripts, and I would like to know how do you guys add the “minimizing” brackets functionality in Vim as GUI text editors do. I’m having a tough time understanding the code because of this, If I could just minimize those giant if, functions, etc… my mind would be very grateful.
Share
By minimizing, I suppose you are referring to code “folding”
zC closes all folds recursively under the cursor, zc closes a single fold. zo opens a single fold under the cursor, while zR recursively opens all folds.
See also
For Perl, you will want
:set foldmethod=syntax.