Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Python 代码中使用foldmethod=marker和#{{{ #}}}标记。
键入#{{{后,vim 会自动展开光标下方的所有折叠。
是否可以关闭此功能?
尝试从“foldopen”选项中删除块。
:set foldopen-=block
或者也许 foldclose=all 选项...
:set foldclose=all
# {{{尝试为类似添加一个匹配项,# {{{1然后添加一个# }}}1
# {{{
# {{{1
# }}}1