John
John

Reputation: 816

Vim disable SpecialKey highlighting

I use set list lcs=tab:\❘\ to display tab indenting, and subtly set the color to be slightly lighter than my background. However, CursorLine seems to highlight these in white, which is unwanted. What can I do so that the color does not highlight, but stays the same?

enter image description here

Upvotes: 2

Views: 725

Answers (2)

zhao
zhao

Reputation: 29

I find a solution here and it works for me

:highlight MyTabSpace guifg=darkgrey ctermfg=darkgrey
:match MyTabSpace /\t\| /

Upvotes: 0

Ingo Karkat
Ingo Karkat

Reputation: 172758

Unfortunately, there's nothing you can do. Vim will use the foreground color of CursorLine, or Normal if the former isn't defined. It currently doesn't "mix" the color definitions from SpecialKey and CursorLine. You could suggest changing this behavior on the vim_dev mailing list.

Upvotes: 1

Related Questions