Vim Configure Line Number Coloring

后端 未结 4 1767
攒了一身酷
攒了一身酷 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:01

    To change the line numbers permanently add the below to your .vimrc

    highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE

    Of course you change the ctermfg and guifg to whatever color you want.

提交回复
热议问题