oblitum
oblitum

Reputation: 12018

Can I fix Conceal highlight group background in highlighted lines?

In VIM I'm using syntastic configured to highlight the lines with warnings and errors:

haskell code

The problem is the background of concealed characters. As can be seen, λ, which replaces \, gets a different background than the line highlighted (it's not my cursor there). Notice that ctermbg=NONE for the Conceal highlighting group.

Is there a fix for this?

Upvotes: 1

Views: 993

Answers (2)

GG.Fan
GG.Fan

Reputation: 151

:hi clear Conceal to turn off the conceal highlight. I found it here.

Upvotes: 1

Ingo Karkat
Ingo Karkat

Reputation: 172570

I see this, too, and I don't think there's a way to overcome this. The priorities of syntax highlighting, 'hlsearch', 'cursorline', and concealed characters (which is a part of syntax highlighting) are fixed and cannot be overruled. You can only influence the priority of the matchadd() definitions.

Upvotes: 3

Related Questions