Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Color scheme for macvim only - how?

Tags:

vim

macvim

I want to use solarize for macvim, but I want the default for when I am in vi. I assume I put a dew lines of code in my .vimrc... but what do I put in there?

like image 966
FrankC - UX designer Avatar asked Jan 13 '12 09:01

FrankC - UX designer


2 Answers

MacVim uses the ~/.gvimrc, so you could set it up in the ~/.gvimrc file. Or you could use has("gui_running"):

if has("gui_running")
  colorscheme solarized
endif

Both versions should work.

like image 197
ckruse Avatar answered Oct 19 '22 23:10

ckruse


You can also use

if has("gui_macvim")
   colorscheme solarized
endif

If you want solarized only for MacVim but not other graphical vim clients.

like image 6
jamesnvc Avatar answered Oct 19 '22 22:10

jamesnvc