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.

For this purpose you can create a peace of syntax file, for the tcl language
that you mention, and add just what you want to change in the
$VIM/vimfiles/after/syntax directory. Or, if you are a *Nix user
".vim/after/syntax". Vim will load the normal syntax file and then look for the
customization in the "after/syntax" directory and apply the changes you made.

I use this to customize syntax for some C/C++ code when I am using "Windows
data types" or "C99" data types, etc. This is customization, not hacking.

Regards.
Alessandro Antonello.

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

Reply via email to