【发布时间】:2017-02-06 11:39:31
【问题描述】:
我使用 vim-fugitive 插件来检查 git diff。突出显示代码更改的配色方案并不适合我的日晒背景。我看不到更改 Gdif 着色方案的命令。谁能帮我改一下配色方案?
【问题讨论】:
标签: linux vim color-scheme git-diff vim-fugitive
我使用 vim-fugitive 插件来检查 git diff。突出显示代码更改的配色方案并不适合我的日晒背景。我看不到更改 Gdif 着色方案的命令。谁能帮我改一下配色方案?
【问题讨论】:
标签: linux vim color-scheme git-diff vim-fugitive
来自: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
在你的配色方案中应该改变添加线条的颜色。
【讨论】: