来自 vim 文档:
COLORS *fold-colors*
The colors of a closed fold are set with the Folded group |hl-Folded|. The
colors of the fold column are set with the FoldColumn group |hl-FoldColumn|.
Example to set the colors: >
:highlight Folded guibg=grey guifg=blue
:highlight FoldColumn guibg=darkgrey guifg=white
Run Code Online (Sandbox Code Playgroud)
所以你不能轻易做到这一点。我能给你的最好的建议是设置状态栏以显示当前的折叠级别(如果可能)。
这取决于您使用的是 Gui Vim 版本还是文本版本。从我这边(文本版本)我已经在我的 .vimrc 中设置了
hi Folded ctermfg=Black
hi Folded ctermbg=DarkGrey
Run Code Online (Sandbox Code Playgroud)