Vim Python模式折叠

Eri*_*ler 16 vim python-mode

我最近下载了Python模式.当我打开python脚本时,我的功能被折叠了.我可以很容易地展开(当你在函数定义的顶部时,它是一个移动键).但是,我无法弄清楚如何重新折叠功能.

而且,也许最重要的是,:help pymode返回一个错误('E149:对不起,对pymode没有帮助').所以我甚至无法查阅文档.

任何帮助,将不胜感激.

pfn*_*sel 35

这里有一个折叠命令列表:

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.
zc close a fold 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.
Run Code Online (Sandbox Code Playgroud)

你在寻找什么zc.


DBe*_*nko 5

按下即可在vim中关闭折叠zc.关闭所有折叠:zM.这些都在Vim文档中.