I'm looking for a way to configure the color used for line numbering (as in: :set nu
) in Vim. The default on most platforms seems to be yellow (which is also used for some highlighted tokens). I would like to color the line numbers a dim gray; somewhere in the vicinity of #555
. I'm not picky though, any subdued color would be acceptable.
Vim Configure Line Number Coloring
configurationsyntax highlightingvim
Related Topic
- How to move to end of line in Vim
- Vim clear last search highlighting
- Your most productive shortcut with Vim
- What’s a quick way to comment/uncomment lines in Vim
- How to do case insensitive search in Vim
- Turning off auto indent when pasting text into vim
- How does the vim “write with sudo” trick work
- How to exit the Vim editor
Best Answer
Try:
I found this through:
which is the way to get help on the
'number'
option, instead of the:number
command.To actually change the displayed colour:
This would change the foreground colour for LineNr on a character terminal to grey. If you are using gVim, you can: