Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the color of the left gutter in VIM?

Tags:

vim

In VIM, i'm using a default theme from someone else with tweaks. The color on the left gutter is dark gray and this makes it hard to see the contents of my gutter (in this case it's vim-gitgutter).

Example:

enter image description here

How can I update the .vimrc to change this color?

Thanks

like image 297
Lucas Ou-Yang Avatar asked Aug 03 '14 18:08

Lucas Ou-Yang


2 Answers

The gutter is called the sign-column in vim. It is controlled by the highlight group SignColumn

Example:

highlight SignColumn guibg=blue ctermbg=white

(This needs to be placed after you source your colorscheme)

This could have been found from the vim-gitgutter readme.

like image 126
FDinoff Avatar answered Oct 13 '22 17:10

FDinoff


Locate the hi SignColumn in the colorscheme and play with the guibg and ctermbg values.

like image 2
romainl Avatar answered Oct 13 '22 18:10

romainl