2009/4/30 [email protected] <[email protected]>:
>
>> Please reply to my last post in order for me to get a chance to
>> understand what is going wrong.  You should also temporarily move your
>> .vimrc/.gvimrc/.vim out of the way and try again to make sure they are
>> not interfering.
>
> Hi Björn,
>
> I am running on OS X 10.5.6, and I see similar behavior.  When
> launching mvim from an iTerm window, it defaults to the dark
> background.  When launching from Terminal, it defaults to the white.
> I am able to reproduce this even when removing .viminfo before
> launching.

Thanks Patrick,

The problem seems to be that iTerm sets the environment variable
"COLORFGBG" which Vim picks up on and changes 'background' to "dark"
automatically (Terminal does not set that variable).  It is possible
to work around this issue by resetting that variable before launching
MacVim, e.g.:

 export COLORFGBG=

I won't do anything about this, since it apparently is a "feature" of
Vim (just like the feature where Vim will take on the dimensions of
the terminal window you launched it from, even when using a GUI [which
I find kind of weird]).

Björn

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

Reply via email to