如何显示打开的褶皱?
How to show open folds?
如何在 vim 中显示打开的折叠? (即当前打开的折叠)
例如,以某种方式在文本中显示打开的折叠,例如标记线条;
或者可能将它们显示为列表(例如,显示跳转列表的 :jumps
命令)
我不知道可以列出折叠,但可以使用 foldcolumn
选项标记线条。 (:help 'foldcolumn'
)。尝试
set foldcolumn=12
警告:根据文档,如果设置了 nofoldenable
,则打开的折叠将 不会 显示在 foldcolumn
.
中
[foldenable] can be toggled with the *zi* command. The 'foldcolumn' will remain blank when 'foldenable' is off.
[:帮助折叠]
如何在 vim 中显示打开的折叠? (即当前打开的折叠)
例如,以某种方式在文本中显示打开的折叠,例如标记线条;
或者可能将它们显示为列表(例如,显示跳转列表的 :jumps
命令)
我不知道可以列出折叠,但可以使用 foldcolumn
选项标记线条。 (:help 'foldcolumn'
)。尝试
set foldcolumn=12
警告:根据文档,如果设置了 nofoldenable
,则打开的折叠将 不会 显示在 foldcolumn
.
中
[foldenable] can be toggled with the *zi* command. The 'foldcolumn' will remain blank when 'foldenable' is off.
[:帮助折叠]