In your vimrc, you can put code like the following:
if has('gui_running')
set guioptions-=T " no toolbar
colorscheme elflord
hi Todo guifg=#40ffff guibg=#606060
set lines=50 columns=96 linespace=0
else
" something for console Vim
endif
John
Just put a different colorscheme line in .vimrc and .gvimrc.
Alternatively, you can do if has("gui_running") in .vimrc, but this
will cause problems if you are ever in console vim and enter :gui
(assuming your console vim has GUI support).
Al
Or check out CSApprox - it tries to make gvim-only colorschemes look
right in 88- and 256-color terminals.
http://www.vim.org/scripts/script.php?script_id=2390
~Matt
PS. If you want to try it but have any problems setting it up, feel
free to ask me about it. :)
Sure:
- set your console-mode colorscheme in your vimrc
- set your GUI-mode colorscheme in your gvimrc if you have one,
otherwise in an autocommand for the GUIEnter event. You may want to
bracket that autocommand with "if has('gui')" to avoid errors in
Console-only Vim versions (where the GUIEnter event isn't defined).
That way, the GUI-mode colorscheme will be set only when starting the
GUI, and after your vimrc has been read and is over and done with. IOW,
the console-mode colorscheme will be the only one set in console mode,
and the GUI-mode colorscheme will be the last one set in GUI mode.
Best regards,
Tony.
--
A language that doesn't have everything is actually easier to program
in than some that do.
-- Dennis M. Ritchie
Sure: