vimvim-syntax-highlighting

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?


Solution

  • 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.