Wednesday, June 4, 2014

How can a highlight group combine custom attributes and a link?

Hello!

I am aware of one way for a highlight group to contain both custom attributes and a link to another group:

:hi Foo guifg=red
:hi! link Foo Comment

:hi Foo
Foo xxx guifg=red
links to Comment

Are there any other ways to do this?

The context is I have a plugin which defines a default highlight group:

:hi default link Foo Comment

In a user's vimrc, they specify the attributes they actually want:

:hi Foo guifg=red

However instead of seeing this:

:hi Foo
Foo xxx guifg=red

...they see this:

:hi Foo
Foo xxx guifg=red
links to Comment

And I cannot figure out why this is happening. (https://github.com/airblade/vim-gitgutter/issues/176)

Thanks in advance!

Yours,
Andy Stewart

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment