2017-02-06 69 views

回答

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 
在你的色彩方案要改变所添加的行的颜色

相关问题