【问题标题】:How to change the coloring scheme of Gdiff in vim-fugitive plugin?如何在 vim-fugitive 插件中更改 Gdiff 的配色方案?
【发布时间】:2017-02-06 11:39:31
【问题描述】:

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

【问题讨论】:

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


    【解决方案1】:

    来自: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
    

    在你的配色方案中应该改变添加线条的颜色。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-07
      • 2010-12-06
      • 1970-01-01
      • 1970-01-01
      • 2015-08-24
      • 2021-01-28
      • 1970-01-01
      相关资源
      最近更新 更多