How to use different color schemes between vim and gvim
What should I write in the file .vimrc
to check if I am running vim or gvim .
Because the color scheme colorscheme I like it very nice in vim, but ugly in gvim. So I want that when I am in vim I use this aforementioned color scheme colorscheme and when I am in gvim use a different color scheme ...
Is there any vimscript code to implement this functionality?
+3
source to share
3 answers
These two pages contain a lot of information about color schemes and how to switch them: http://vim.wikia.com/wiki/Switch_color_schemes http://www.indelible.org/ink/vim-colorschemes/
It also has a problem:
if has('gui_running')
" GUI colors
colorscheme foo
else
" Non-GUI (terminal) colors
colorscheme bar
endif
+16
source to share