Setting background color in gvim
Posted
by
petersohn
on Super User
See other posts from Super User
or by petersohn
Published on 2010-05-16T07:02:30Z
Indexed on
2012/09/01
15:40 UTC
Read the original article
Hit count: 293
I use a terminal with white text on black background (I just like it better), so I wrote the following line in my .vimrc
file:
set background=dark
However, gvim
has black on white text. How do I do either of the following:
- Set the background of
gvim
to black - Check in
.vimrc
if I'm usinggvim
I tried this: I started up gvim
, and typed echo &term
. The answer was "builtin_gui". So I wrote the following into .vimrc
:
if &term == "builtin_gui"
set background=light
else
set background=dark
endif
Somehow, it didn't work.
© Super User or respective owner