1

我使用 vim-fugitive 插件来检查 git diff。突出显示代码更改的配色方案并不适合我的日晒背景。我看不到更改 Gdif 着色方案的命令。谁能帮我改变配色方案?

4

1 回答 1

3

来自:help :diffupdate

|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.

所以,例如,像

:highlight DiffAdd ctermfg=253 ctermbg=237 guifg=#dadada guibg=#3a3a3a

在您的颜色方案中应该更改添加线条的颜色。

于 2017-02-06T03:39:31.150 回答