Vim Folding - Linux VIM
gotbletu
Description: Vi Improved, a highly configurable, improved version of the vi text editor
Vim folding commands zf#j creates a fold from the cursor down # lines. zf/string creates a fold from the cursor to string . za When on a closed fold: open it.and vice-versa. zA When on a closed fold: open it recursively.and vice-versa. 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.
paste in ~/.vimrc to save folds automatically
au BufWinLeave * mkview au BufWinEnter * silent loadview
helppage on vim :help folding
https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun http://nerd-hacking.blogspot.com/2006/05/vim-folding-tips.html
open vim as root or normal code http://paste2.org/p/2015003 ... https://www.youtube.com/watch?v=B3U1Pg0YZSU
18874838 Bytes