Friday, April 29, 2011

Re: How do define a default highlight for none-linked group?

On 29/04/11 04:00, pansz wrote:
> hi vimmers,
>
> for linked group we can use :hi default link to set a default value, for
> none-linked group we can't.
>
> Suppose my script want to set the default value highlight group
> CursorIM. i.e. if user color scheme has set the hi CursorIM, let it be,
> if user color scheme has not set the highlight, my script set it to a
> specific value.
>
> Is it possible? or is it possible to check in script whether a highlight
> group already defined or not?

What about
hi default CursorIM term=reverse ctermbg=green ctermfg=yellow
\ gui=bold guibg=green guifg=yellow

I don't have a help tag but see line 4087 of syntax.txt (2011 Apr 06 for
Vim 7.3).


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
78. You find yourself dialing IP numbers on the phone.

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

Post a Comment