Changing vim 'gutter' color

后端 未结 3 447
闹比i
闹比i 2021-01-31 01:25

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

相关标签:
3条回答
  • 2021-01-31 02:04

    Another option that hasn't been mentioned is to eliminate the sign column entirely and put the signs into the number column.

    Adding this to your ~/.vimrc

    set signcolumn=number
    

    produces

    (this is using custom symbols with the Ale plugin in iterm Vim).

    This is available in "full" Vim versions 7.4.2201 or newer that include the +signs feature (I use the version installed by Homebrew on MacOS).

    0 讨论(0)
  • 2021-01-31 02:10

    To change the color in your ~/.vimrc so that your gutter is the same color as where your line numbers show up is the following:

    highlight clear SignColumn
    

    enter image description here

    The git-gutter docs have some other helpful suggestions.

    0 讨论(0)
  • 2021-01-31 02:23

    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
    
    0 讨论(0)
提交回复
热议问题