The 90s called; they want their 256 colors back
Hans Fugal
hans at fugal.net
Tue Mar 4 15:51:57 MST 2008
Michael L Torrie wrote:
> Jonathan Duncan wrote:
>> Feel free to share here as well. I am always eager to enhance my
>> vimrc-foo also.
>
> Here's what I did. I'm thinking there is still a safer way to do it:
>
> In my vimrc file:
>
> if has("gui_running")
> colorscheme desert
any reason you don't just put that in ~/.gvimrc?
> else
> set bg=dark
> if &term == "xterm"
> set t_Co=256
> colorscheme desert256
> endif
Yes, that's not very "safe", but if it works go with it. It's not like
it's going to explode or let hackers into your system if your xterm
decides to go back to the 80s.
> endif
--
Hans Fugal ; http://hans.fugal.net
There's nothing remarkable about it. All one has to do is hit the
right keys at the right time and the instrument plays itself.
-- Johann Sebastian Bach
More information about the PLUG
mailing list