In Vim can you stop the color change of white space characters with 'set cursorline' on?

前端 未结 4 699
鱼传尺愫
鱼传尺愫 2021-02-04 06:33

In this Vim screenshot you can see that when moving the cursor over a line it changes the normal color of the whitespace characters (shown on the left) from grey to black. Can I

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 06:54

    You can use :match to highlight the tabs.

    :match NonText '^\s\+'
    

    That seems to override the cursor line. It would be better of course to use matchadd() but it seems to be overriden by the cursor line. There might be a way to make it work

提交回复
热议问题