What should I write in my .vimrc file to test whether I am running vim or gvim.
Because the colorscheme I like very much is beautiful in vim, but is ugly in gvim. So I want it that when I am in vim, I use this aforementioned colorscheme, and when I am in gvim, use another colorscheme.
Is there any vimscript code can implement this function?
These two pages have a lot of info on color schemes and how to switch them:
http://vim.wikia.com/wiki/Switch_color_schemes
http://www.indelible.org/ink/vim-colorschemes/
It also features the issue you have: