i have line highlighting set in my .vimrc:
if v:version > 700
hi CursorLine ctermbg = Red guibg = #F5FBF6
and line numbers on. Background and foreground of line numbers is set to:
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=Black guibg=#589A5D
Current line is correctly highlighted but fore/back color of line number (this on the left side of editor) is the same. How can i change color of line numbers?
Since this post is still showing up as a top search result for this problem and the top-voted answer is now out of date, I'll post a link to a more recent StackExchange question which provides the current answer.
Short version: in recent versions of vim, there is now a
CursorLineNr highlighting group that allows you set a different color for the line numbering of the current line.
It looks like a bug in Vim that only certain forms of highlighting for CursorLine apply to the LineNumber column. I'm not sure whether the bug is that the CursorLine highlighting is being applied to the LineNumber column or if the bug is that not all of the ways CursorLine can be specified apply to the LineNumber column.