11

Is it possible to have different set of colors for folds and subfolds, eg:

  • blue foreground on grey background for fold level 1 (default)
  • black foreground on dark yellow background for fold level 2
  • etc... (although going further down would seem a bit excessive)
4

3 に答える 3

4

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

したがって、これを簡単に行うことはできません。私があなたにできる最善のアドバイスは、可能であれば現在の折りレベルを表示するようにステータスバーを設定することです。

于 2010-10-14T06:30:10.017 に答える
3

これを非常に簡単に設定できるVimcコードへの簡単なパッチがあります。パッチでVimを再コンパイルするか、Windowsを使用している場合は、Vim7.2用のパッチを適用した実行可能ファイルを送信できます。

于 2010-10-14T06:58:25.010 に答える