In this Q&A, it's observed that there is a highlight group for CursorLineNr
, which applies to the line number for the cursor line when set cursorline
is on.
I notice that using cursorline also changes the color for another highlight group, SpecialKey
, which applies if you have, e.g.:
set list listchars=tab:\|_,trail:-
The problem with this for me is I use a dark background (and so a dark cursorline). My normal SpecialKey
setting is also very dark, so that the listchar
symbols are only marginally visible. But using cursorline
they're white, which makes the trail
char indistinguishable from having actually hit -
. The trail character is used every time you type a space at the end of a line, so this is more than a minor issue; usually typing a line from beginning to end involves a number of spaces that should be easily distinguished from a dash typo while working (or vice versa, a space typo when you intended a dash).
Since none of the other highlight groups seem to be affected, something like CursorLineNr
is presumably being applied, but looking through the hi
list I don't see anything appropriate.
Does anyone know what this is? Better yet, does anyone know of a way to modify any highlight group for cursorline?