vim-fugitiveプラグインでGdiffのカラースキームを変更するには?

vim-fugitiveプラグインでGdiffのカラースキームを変更するには?

vim-fugitiveプラグインを使用してgit diffをチェックします。コードの変更を強調するカラースキームは、私の夏時間の背景と一致しません。 Gdif カラースキームを変更するコマンドは表示できません。カラースキームを変更するのに役立つ人はいますか?

ベストアンサー1

いくつかの探検では:h diff

|hl-DiffAdd|    DiffAdd     Added (inserted) lines.  These lines exist in
                this buffer but not in another.
|hl-DiffChange| DiffChange  Changed lines.
|hl-DiffText|   DiffText    Changed text inside a Changed line.  Vim
                finds the first character that is different,
                and the last character that is different
                (searching from the end of the line).  The
                text in between is highlighted.  This means
                that parts in the middle that are still the
                same are highlighted anyway.  Only "iwhite" of
                'diffopt' is used here.
|hl-DiffDelete| DiffDelete  Deleted lines.  Also called filler lines,
                because they don't really exist in this
                buffer.

次に、各ハイライトグループを目的の色に設定する必要があります。

hi DiffAdd gui=NONE guifg=green guibg=black

バラよりonedak.vimそして柔らかい精力より多くの例を学びましょう。

おすすめ記事