Created
July 28, 2014 19:56
-
-
Save silviud/ab15aead706d9238ffc8 to your computer and use it in GitHub Desktop.
vim folds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vim folding commands | |
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. | |
# http://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment