Saturday, June 25, 2011

Modifying precedence of highlight groups

Is there a way to modify the precedence of built-in highlight groups?
For instance, CursorLine always supersedes SpellBad, so if you have
'cursorline' set, you can't see the highlighting for spelling errors on
the current line until you move the cursor to another line.

Since CursorLine comes after SpellBad in the list of highlight groups
returned by the `:hi` command, I assume that the order of this list
signifies the precedence of the various groups. Groups that come later
seem to override those that come earlier. Is this correct? And if so, is
there a way to change the order of the list according to my preference?

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: