· 78 words · 1 min
The fold operator is z(when a paper is folded, it is shaped like the letter z).
In Visual Mode, use v to select the codes you want to fold, and press zf to fold them.
zf5j will fold the next five lineszfip will fold an inner paragraphzfa{ will fold the text within {…}zfG will fold to the end line of a filezo to open a foldza to toggle a foldzR to open all foldszM to close all folds