On Sat, Jun 06, 2009 at 12:04:37PM -0300, Alessandro Antonello wrote: > > Hi Taylor. > > > > > 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. -- Taylor Christopher Venable http://real.metasyntax.net:2357/ --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
