Sunday, November 29, 2009

folding

folding
Use folds to collapse selected blocks. Useful if you've finished a subroutine and want to save window space, or maybe want to fold all blocks of comments.

select block, then :fold
zo - open
zc - close
See :help foldmethod for options, and use :mkview and :loadview to save and restore the current window.

No comments: