Vim and Gvim – Change color for cursorline line numbers

colorsgvimvim

I have downloaded and installed the blueshift colorscheme for vim/gvim.

This highlights the current line with cursorline, which is what I want, however the background color of the line numbers column is changed to "white".

  • How can I change this color?

I would like to change it to be a more subtle color, perhaps something close to #c0d0e0 which is the background color of the "non-current-line" line numbers.

To help illustrate my description, please see the attached image below.

Screenshot

The "red" is ok, but I would like to change the "white" background to another color.

Best Answer

This is controlled by the CursorLineNr highlight group. It's a recent (Vim 7.4) addition; the blueshift colorscheme does not have a definition for that.

You can change it like that (after the :colorscheme blueshift command):

:highlight CursorLineNr gui=bold guifg=DarkRed guibg=#c0d0e0
Related Question