>>
>> >
>> > I spent some time tackling this and wondered if anybody had a more
>> > elegant solution. ?The problem is that some color schemes set the
>> > background of strings, comments, etc. to something other than the
>> > default background color. ?Any syntax using a highlight group that
>> > isn't affected by this, but is "contained" inside a string, such as a
>> > variable reference in a scripting language like sh or Tcl, will thus
>> > have a different background than the surrounding string. ?This makes
>> > the string appear broken up, when in fact it's not. ?I asked on #vim
>> > if there was a way to select only the foreground or background to be
>> > 'transparent' but was told there isn't. ?That leaves setting the
>> > highlighting guibg/guifg and ctermbg/ctermfg manually. ?This isn't
>> > that hard, but it requires some repetition and hackishness that makes
>> > me uncomfortable.
>>
>> Modifying a Vim script is not hacking. It is a common task for people that 
>> like
>> some 'customizations'. This is the Vim builty. It can be customized to the 
>> way
>> you like to use it. For your problem you don't need to create a whole 
>> separate
>> file for change just a few syntax groups.
>
> This isn't about modifying the syntax file, I'm cool with that.  I've
> forked half a dozen myself, and am the maintainer of the Tcl syntax
> because I initially hacked on it to add some new features.  What I'm
> wondering about is if there's a more elegant way of accomplishing what
> I have here, other than modifying the highlight colors to share those
> of the current color scheme whenver it changes.  In my mind this is
> hackish in the sense that there ought to be a more elegant way.
> Principally, I wish there was a way to do transparent background only,
> but if that's not possible than perhaps picking and choosing the
> various properties of highlighting piecemeal is the best that can be
> done at this point.
>

Ok, I understand you now. But I don't know if there is another way to do this
kind of change. What you are thinking is a way to say Vim wide:

    "I want all highlight groups to have transparent background!"

Is that right? Well, would been nice if Vim had a kind of script where we could
override some language specific settings with a custom configuration. All you
had to do is put your settings on this script to change the default behavior. I
thought autoload mechanism could help. But I was wrong about that.

I think that changing the specific syntax highlight, or using the
"after/syntax" mechanism is the only way we can do this kind of customization
with the current version of Vim. I can't find another way.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to