1.11M Members

Vim, Pathogen, and GUIColorScheme

 
0
 

Hello all!
I have been setting up my vim configuration (dot files and plugins) on a fresh install of archlinux and decided to use pathogen this time around and love it... exept for an odd problem (really just an annoyance) it creates with guicolorscheme plugin. I am unable to get a color scheme to auto-load on startup, and have to manually type:

:GuiColorScheme <name_of_theme>  

each time. The relavent section of my .vimrc is:

if (&t_Co == 256 || &t_Co == 88) && !has('gui_running') &&
       \ filereadable(expand("$HOME/.vim/plugin/guicolorscheme.vim"))
        "runtime! bundle/guicolorscheme/plugin/guicolorscheme.vim
        runtime! plugin/guicolorscheme.vim
        GuiColorScheme chlordane
else
        colorscheme zenburn
endif               

and the plugin is located in:

.vim/bundle/guicolorscheme/plugin/guicolorscheme.vim 

All of my other plugins are performing correctly (nerdtree, minibuffer, etc.), and my path seems to be correct (pointing to all directories in bundle). Are there any vim gurus out there that know a fix?
Thanks in advance for any help on this!
-vikingsheepman

 
0
 

If the GuiCOlorScheme isn't running, I assume vim is getting to the else section of that if-else. Does your colorscheme default to zenburn?

Type ":set t_Co" to see what that variable is set to. You're not running gvim so that !has('gui_running') is true, right? Do you have the path correct for the guicolorscheme.vim file?

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article