On Tue, Dec 2, 2008 at 8:17 PM, Tony Mechelynck wrote:
> On 01/12/08 19:04, Matt Wozniski wrote:
>> On Mon, Dec 1, 2008 at 11:15 AM, Simon Ruderich wrote:
>>> If you want to changes this, remove these lines from gitcommit.vim (my
>>> version
>>> is from 2008 Apr 09).
>>>
>>> hi def link gitcommitSummary Keyword
>>> hi def link gitcommitBlank Error
>>
>> Or, much nicer, adding
>>
>> hi def link gitcommitSummary Normal
>> hi def link gitcommitBlank Normal
>>
>> to your ~/.vimrc - same effect, but the changes won't be reverted next
>> time gitcommit.vim is upgraded.
>
> The above should appear in your vimrc after the ":colorscheme" command.
> Alternately, you can use
>
> hi ColorScheme * hi def link gitcommitSummary Normal
^^
au
> \ | hi def link gitcommitBlank Normal
>
> (or any other link) in your vimrc before the ":colorscheme", to avoid
> having them removed even if you change colorschemes after starting Vim,
> and even if one of them uses "hi clear" before setting its own colors.
I don't think this is necessary - did you test it? It seems to me
that despite the fact that ":hi clear" is a :highlight command, it's
not cleared with :hi clear - in fact, it's shown with :syntax list
gitcommitBlank. I can find no way to make the "hi def link" in
~/.vimrc go wrong, and I tested with various combinations of "hi
clear" (it sticks around), "syn clear" (it disappears, but resetting
'syn' to 'gitcommit' brings it right back) and "colorscheme"...
Seems like the autocmd is unnecessary to me - and in fact, the vim
documentation itself seems to agree with me, see :help :hi-default
~Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---