Vim folding

Updated: 18 November 2023

Toggle fold
za

Close all
zM

Open all
zR

Eliminate all folds in window (foldmethod “manual” or “marker”)
zE

For html

:set foldmethod=indent

Disable folding

:set nofoldenable

Foldtext

Remove foldtext

:set foldtext=''

Default foldtext

:set foldtext=foldtext()

Leave a comment