Folding
Last updated
Was this helpful?
Last updated
Was this helpful?
It is convenient to temporarily fold away (hide) parts of your file, leaving only an outline of the major parts visible.
Many programming languages have a syntax file that supports folding. Typically, each function is regarded as a fold that can be opened or closed. With all folds closed, you see only the first line of each function for an overview of the program.
To activate folding in your text, you will need to set the 'foldmethod' option in .vimrc
like set foldmethod=manual
. To toggle use za
in Normal
mode.