Monday, August 8, 2011

Re: colorschemes are not right ... most of the time

Gary Johnson wrote:
> On 2011-08-08, wombatvvv wrote:
>
>> Hi,
>>
>> I'm new to VIM and trying to find a colorscheme I like.
>>
>> I've installed the ColorScheme Scroller plugin (:SCROLL / :COLOR). I have
>> noticed that when I used the :colorscheme zenburn (whatever) command, the
>> color scheme never displays correctly. The same if I put a colorscheme line
>> in my vimrc file in order to get it to load on startup.
>>
>> /However/, it does /sometimes/ work properly if I get to the colorscheme by
>> scrolling through all the options after using the :SCROLL plugin. I can't
>> find any rhyme or reason to this. Most of the time it doesn't work, but
>> sometimes, for some reason, it comes up looking right. (two I have noticed
>> this with are zenburn and summerfruit256).
>>
>> Is it possible that cycling through all the other color schemes, one of them
>> somehow "resets" my terminal colors, or does something else that enables the
>> schemes to be displayed properly?
>>
>> Any solutions?
>>
> I'm no expert in color schemes, but in my experience of getting my
> own color scheme to work consistently across a variety of platforms
> and when switching among color schemes, I found that the behavior of
> my color scheme was very sensitive to the order of the initial
> commands to reset and clear colors. It could be that zenburn.vim is
> missing some of those commands or has them in the wrong order. You
> might open that file alongside one of the files from
> $VIMRUNTIME/colors and check those initial commands. I'd look at it
> myself but I don't have a copy of zenburn.vim.
>
I don't use zenburn myself, although I do have it. It looks like it has
a pretty standard startup.

However, it does have a number of if..endif blocks that presumably can
cause things to differ.

:echo &t_Co
There's a "Kurt block" of commands that that take place if &t_Co > 255

if g:zenburn_high_Contrast exists, then there's more differences.
if g:zenburn_alternate_Error exists, ditto.
if g:zenburn_force_dark_Background exists, ditto.
if g:zenburn_high_Contrast exists, ditto.
etc.

So, when you :colors zenburn , do you have any of these g:zenburn...
options set? Are any of them set by the :SCROLL plugin? How about when
its "displaying properly?"

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: