Vim Configure Line Number Coloring

后端 未结 4 1777
攒了一身酷
攒了一身酷 2020-12-22 21:29

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

4条回答
  •  渐次进展
    2020-12-22 22:10

    Try:

    help hl-LineNr
    

    I found this through:

    help 'number'
    

    which is the way to get help on the 'number' option, instead of the :number command.

    To actually change the displayed colour:

    :highlight LineNr ctermfg=grey
    

    This would change the foreground colour for LineNr on a character terminal to grey. If you are using gVim, you can:

    :highlight LineNr guifg=#050505
    

提交回复
热议问题