[英]How to show open folds?
How can I show open folds in vim?如何在 vim 中显示打开的折叠? (ie, folds that are currently open)
(即当前打开的折叠)
eg, show the open folds within the text somehow, like marking the lines;例如,以某种方式在文本中显示打开的折叠,例如标记线条;
or perhaps show them as a list (eg, like the :jumps
command that shows a list of jumps)或者可能将它们显示为列表(例如,像显示跳转列表的
:jumps
命令)
I don't know that folds can be listed, but marking of lines is possible using the foldcolumn
option.我不知道可以列出折叠,但可以使用
foldcolumn
选项标记线条。 ( :help 'foldcolumn'
). (
:help 'foldcolumn'
)。 Try尝试
set foldcolumn=12
Caveat: per the documentation, if nofoldenable
is set, open folds will not be shown in the foldcolumn
.警告:根据文档,如果设置了
nofoldenable
,则打开的折叠将不会显示在foldcolumn
中。
[foldenable] can be toggled with the *zi* command. The 'foldcolumn' will remain blank when 'foldenable' is off.
[ :help foldenable ] [ :帮助可折叠]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.