如何在vim-fugitive插件中更改Gdiff的着色方案?

时间:2017-02-06 03:28:50

标签: linux vim color-scheme git-diff vim-fugitive

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

1 个答案:

答案 0 :(得分:2)

来自: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
你的colorscheme中的

应该改变添加的行的颜色。