Skip to content
Snippets Groups Projects
Commit fba8acbc authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Add vim folding documentation

parent 4130dce7
No related branches found
No related tags found
No related merge requests found
...@@ -459,6 +459,25 @@ let g:syntastic_quiet_messages = { 'regex': [ ...@@ -459,6 +459,25 @@ let g:syntastic_quiet_messages = { 'regex': [
" Maintain folds and cursor placement " Maintain folds and cursor placement
set viewoptions=cursor,folds,slash,unix set viewoptions=cursor,folds,slash,unix
" 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.
" za toggle a fold at the cursor.
" zo opens a fold at the cursor.
" zO opens all folds at the cursor.
" zc closes a fold under 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.
" FastFold by Enno settings " FastFold by Enno settings
nmap zuz <Plug>(FastFoldUpdate) nmap zuz <Plug>(FastFoldUpdate)
let g:fastfold_savehook = 1 let g:fastfold_savehook = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment