Macvim color scheme only - how?

I want to use solarization for macvim, but I want it by default when I'm in vi. I suppose I put lines of text in my .vimrc ... but what did I put in there?

+6
source share
2 answers

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

 if has("gui_running") colorscheme solarized endif 

Both versions should work.

+22
source

You can also use

 if has("gui_macvim") colorscheme solarized endif 

If you want to solarize only for MacVim, but not for other vim graphical clients.

+6
source

Source: https://habr.com/ru/post/905896/


All Articles