VIM: Folding

:set foldmethod=manual
:set foldmethod=syntax
:set foldmethod=indent
:set foldlevel=1

:mkview
:loadview


za: open/close current folding
zc: close current folding
zo: open current folding

zm: close all the folds
zM: close all the folds and nested foldin
zr: open all the folds
zR: close all the folds and nested folding

zd: delete current folding
zE: delete all the folds
zj: move to the next folding
zj: move to the previouse folding

zn: disable folding
zN: enable folding

posted @ 2018-06-05 20:49  xinyueliu  阅读(49)  评论(0)    收藏  举报