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)
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>
Subject: Re: Conditional statement in .vimrc to check if gui or terminal
Content-Type: text/plain; charset=UTF-8
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.
> if has("terminal_macvim")
> set background=light
> (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,