From b55a9b43dc89cb55d51be89656b2634e385d3ca3 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Wed, 6 Feb 2013 10:00:43 -0800 Subject: [PATCH] Use light BG in GUI Vim and dark in console Console uses Solarized (Dark) colorscheme, so having a light background doesn't work well in the console. On the other hand, the dark background is hard to read in MacVim (for me). --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 99ccc2a..76eb636 100644 --- a/vimrc +++ b/vimrc @@ -76,8 +76,12 @@ set wcm= map :emenu " Colorscheme -set background=dark colorscheme solarized +if has("gui_running") + set background=light +else + set background=dark +end " Mouse support if has("mouse")