On 06/06/09 06:54, Taylor Venable wrote: > > 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. [...]
You could always tweak your colorscheme, as follows: 1. Copy it to the ~/.vim/colors (for Unix etc.) or ~/vimfiles/colors (for Windows) directory, and change the name (but not the .vim extension) of the resulting file. (If the directories don't yet exist, create them first.) 2. Change the ":let colors_name" statement to reflect the new colorscheme name (i.e., its filename not including the .vim extension). 3. Change any ":hi[ghlight]" statements that are not to your liking. Optionally make any other changes to suit you. 4. Where you invoke the colorscheme (usually in your vimrc), change the operand of the ":colorscheme" statement to reflect the new name (cf. step 2). Repeat steps 3 and 4 until you are satisfied with the result. Note: NEVER apply changes of your own directly to anything in the $VIMRUNTIME directory or below, because any update may (and someday one surely will) reverse such changes with no warning. Best regards, Tony. -- Save the whales. Collect the whole set. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
