gvim refuses to load background color

I'm a avid user of gvim. And I've noticed that my color schemes don't load the correct background color (they do however in vim). In your .vimrc you have to add a little code snippet to solve this:

if has("gui_running")
gui
colorscheme golden
endif

Where golden is the name of the color scheme you want to use.
Thanks to mgedmin for the solution! :)

Cheers!

Comments

Post new comment

  • Allowed HTML tags: <strong> <code>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options