VIM initial settings: change background color for line number on the left side?

前端 未结 4 1363
感动是毒
感动是毒 2021-01-31 08:41

I use _vimrc to configure my vim 7.2 (windows) default settings. One setting \"set number\" will display line numbers on the left side. My vim background color is w

4条回答
  •  不知归路
    2021-01-31 09:27

    To make the line number column transparent (the same color as the main background) you can try setting this in your .vimrc:

    highlight clear LineNr
    

    You can also clear the so-called sign column (used by gitgutter, etc) as well:

    highlight clear SignColumn
    

    This way, no matter what color scheme you use, both columns' background will be compatible.

提交回复
热议问题