Skip to content
shinokada edited this page Oct 19, 2014 · 1 revision

Folding vim wiki

Vim tips: Folding fun

zc # close a fold
zo # open a fold
za # toggle a fold
zr # reduces folding by opening one more level of folds throughout the whole buffer
zC, zO, zA,zR # are similar to the above and operate on all folding
zf#j # creates a fold from the cursor down # lines.
zf/string # creates a fold from the cursor to string .
zj # moves the cursor to the next fold.
zk # moves the cursor to the previous fold.
zo # opens a fold at the cursor.
zO # opens all folds at the cursor.
zm # increases the foldlevel by one.
zM # closes all open folds.
zr # decreases the foldlevel by one.
zR # decreases the foldlevel to zero -- all folds will be open.
zd # deletes the fold at the cursor.
zE # deletes all folds.
[z # move to start of open fold.
]z # move to end of open fold.]

12. Editting.md


  1. Join
  2. Folding
Clone this wiki locally