0
我使用vim-fugitive插件来检查git diff。突出显示代码更改的着色方案不会赞扬我的日光背景。我无法看到命令来改变Gdif的着色方案。任何人都可以帮我改变着色方案吗?如何更改vim-fugitive插件中Gdiff的着色方案?
我使用vim-fugitive插件来检查git diff。突出显示代码更改的着色方案不会赞扬我的日光背景。我无法看到命令来改变Gdif的着色方案。任何人都可以帮我改变着色方案吗?如何更改vim-fugitive插件中Gdiff的着色方案?
从: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
在你的色彩方案要改变所添加的行的颜色
。