Search code examples
vimcolor-scheme

gvim solarized won't load all it's settings on first run


I use solarized as my colorscheme with some customizations in my vimrc file. But strangely they get won't get applied when gVim starts. I need to source the config one time for the solarized settings to get taken over. Said options are:

let g:solarized_contrast = "low"
let g:solarized_visibility = "high"
let g:solarized_hitrail = 1

A very similar question is .vimrc is not being sourced properly but no answer was found. I can't comment on the old topic (why?!)

.vimrc is hosted here


Solution

  • Call colorscheme solarized after all of the let g:solarized_ variables are set.

    The solarized colorscheme script uses these flags to determine how it is going to set your colours as it is loaded.