Tony Mechelynck schrieb:
> On 27/04/09 18:55, Charles Campbell wrote:
>
>> Torsten A. wrote:
>>
>>> Hello everyone,
>>>
>>> I checked at vim color scheme test for different color schemes and
>>> downloaded a few. But when ever I choose some color scheme it doesn't
>>> look even close to whatever scheme I just downloaded. It looks like vim
>>> gets all the colors wrong. Particularly the background never changes
>>> from black to whatever color the scheme may choose.
>>>
>>> I use xterm, $TERM=xterm (though I already tried it with xterm-color -
>>> the same) on Debian Squeeze, vim 7.2.130.
>>>
>>> Do I misunderstand something? I thought when choosing a color scheme it
>>> should look the same as in the preview, shouldn't it? Unfortunately I
>>> wasn't able to find any hints.
>>>
>>>
>> Here are some things you could check on...
>>
>> Are you using the command
>> :colors [scheme-name-here]
>> ?
>>
>> Did you put the downloaded colorscheme into your
>> .vim/colors/
>> directory?
>>
>> Does your vim support syntax highlighting?
>> :echo has("syntax")
>>
>> Regards,
>> Chip Campbell
>>
>
> Did you set filetype detection on?
> :filetype
> Have you set ":syntax on"?
> :if exists("syntax_on")|echo syntax_on|else|echo "unset"|endif
>
> And in addition: each colorscheme actually consists of three almost
> totally separate colorschemes: one for monochrome terminals (there
> aren't many of these left, but they mostly used to be one of
> black-and-white, black-and-amber or black-and-green), one for color text
> terminals and one for the GUI. Any highlight group that the colorscheme
> doesn't specify for the terminal currently in use falls back to the Vim
> default for that terminal.
>
> In addition, the Vim default colors (and, if they care, the
> colorschemes) come in two variants for each terminal type, depending on
> whether the default background set by the system for that terminal is
> "light" or "dark". For instance, xterm and the Linux console are both
> color text terminals, but the former uses (on my system) white
> background while the latter uses black background. (Detection of whether
> the background is "light" or "dark" isn't perfect: Vim sometimes has to
> guess, and sometimes it guesses wrong.)
>
> So if the examples are for the GUI, you'll get different colours in a
> text terminal; and if it is for a dark-background text terminal, it will
> probably appear differently in a light-background text terminal.
>
> And finally: colorschemes usually don't affect font settings, so if you
> use a different font than what was set when the screenshot was taken,
> the characters will of course be shaped differently.
>
>
> Best regards,
> Tony.
>
Hi Tony,
thanks for your reply, but the issue was already solved. The problem was
that the schemes I tried were created for gvim. So I used the CSApprox
plugin to fix this.
Cheers,
Torsten
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---