Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Conditional statement in .vimrc to check if gui or terminal version

Received: by 10.58.189.35 with SMTP id gf3mr2967792vec.11.1350379523655;
        Tue, 16 Oct 2012 02:25:23 -0700 (PDT)
X-BeenThere: vim_mac@googlegroups.com
Received: by 10.220.154.5 with SMTP id m5ls4121625vcw.2.gmail; Tue, 16 Oct
 2012 02:25:21 -0700 (PDT)
Received: by 10.52.156.115 with SMTP id wd19mr2180826vdb.2.1350379521922;
        Tue, 16 Oct 2012 02:25:21 -0700 (PDT)
Date: Tue, 16 Oct 2012 02:25:21 -0700 (PDT)
From: Aaron Cruz <pferdeflei...@gmail.com>
To: vim_mac@googlegroups.com
Message-Id: <4148457b-0849-4e43-8c17-b1f52f69cf2b@googlegroups.com>
In-Reply-To: <7b98d5b7-43b1-4922-9234-a2b8c71f9802@googlegroups.com>
References: <7b98d5b7-43b1-4922-9234-a2b8c71f9802@googlegroups.com>
Subject: Re: Conditional statement in .vimrc to check if gui or terminal
 version
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_147_22105931.1350379521064"

------=_Part_147_22105931.1350379521064
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

This is working. Fantastic. Thanks.

I just found it here https://github.com/altercation/vim-colors-solarized#modify-vimrc and was coming back to report it but you all beat me to it :P


On Monday, October 15, 2012 5:32:33 PM UTC+2, Aaron Cruz wrote:
> I am having problems with the solarized dark colorscheme showing up correctly on my terminal version of MacVim because I don't want to use the solarized **terminal** theme as well.
> I just found the `if has("gui_macvim")` statement but it is getting a true also for my terminal version of MacVim.
> I would be happy solving this with a conditional statement in my .vimrc that looked something like this.
> <code>
> if has("terminal_macvim")
>   set background=light
> endif
> </code>
> (This would also have to not break linux vim builds)
> Does such a thing exist?
> Can anyone think of another way of solving this?
> The use case is that I tend to use the terminal version for one off scripts and configs and the GUI version for projects that have some sort of file tree.
> --
> Thanks all,
> aaron

------=_Part_147_22105931.1350379521064--