tags:

views:

1112

answers:

2

I use _vimrc to configure my vim 7.2 (windows) default settings. One setting "set number" will display line numbers on the left side. My vim background color is white (I cannot find setting for this. Maybe the default is white. Anyway I accept this setting).

I would like the background color for line numbers to be Grey or dimmed color. What is the command I can put in my _vimrc to configure this default setting?

+4  A: 

highlight LineNr ctermfg=grey ctermbg=white

robert
+1  A: 

I tried cterm but not working for my vim7.2 (windows). Actually I find the solution. In my _vimrc, here is the setting:

highlight LineNr guibg=grey
" or 
"hi LineNr guibg=grey

I don't need to set fore-color, the default is yellow and it is OK for me. Thanks!

David.Chu.ca