更改 vim 'gutter' 颜色 [英] Changing vim 'gutter' color
问题描述
请看下面我如何配置 vim 的屏幕截图.'gutter' 即出现 '+' 和 '~' 符号的地方使用这个惊人的 vim 文本端口显示我的 git 状态: 但我找不到如何更改装订线"颜色.
有什么想法吗?
非常感谢.
这个排水沟"被称为标志栏.(有关详细信息,请参阅 :help 标志
.)与此列关联的高亮组称为 SignColumn
,可以这样设置(使用帮助部分中的示例):
:highlight SignColumn guibg=darkgrey
See the screenshot of how I have vim configured below. The 'gutter' i.e. where the '+' and '~' symbols appear show my git status using this amazing sublime text port for vim: https://github.com/airblade/vim-gitgutter
How do I change the color of the gutter where there are no '+'/'~' symbols? I.e. the grey part? This is how you change the number column: VIM initial settings: change backgound color for line number on the left side? but I can't find how to change the 'gutter' color.
Any ideas?
Many thanks.
This "gutter" is called the signs column. (See :help signs
for more information.) The highlight group associated with this column is called SignColumn
, and can be set like this (using the example from the help section):
:highlight SignColumn guibg=darkgrey
这篇关于更改 vim 'gutter' 颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!