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

前端 未结 4 698
鱼传尺愫
鱼传尺愫 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 07:11

    Yes you can. From :help listchars (at the end):

    The "NonText" highlighting will be used for "eol", "extends" and "precedes". "SpecialKey" for "nbsp", "tab" and "trail".

    With this knowledge you can modify your color scheme accordingly or add a call to highlight in your vimrc.

提交回复
热议问题