Search code examples
vimeditorvim-pluginvim-syntax-highlightingneovim

How to change the color of the relative numbers in vim?


I'm using the night-owl theme for vim and I love it.

There is just one issue. The relative numbers are too dark.

How can I tweak their colors?

Here is how it currently looks:

enter image description here

I'd like to make the 3 2 1 1 2 3 brighter.


Solution

  • This is controlled by LineNr highlight group. Try this:

    :hi LineNr ctermfg=7
    

    You can find other color numbers at :help cterm-colors.