We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,188 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Vim, Pathogen, and GUIColorScheme

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

2
Contributors
1
Reply
3 Weeks
Discussion Span
3 Months Ago
Last Updated
5
Views
vikingsheepman
Newbie Poster
3 posts since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 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?

LaMouche
Posting Whiz in Training
275 posts since Oct 2006
Reputation Points: 84
Solved Threads: 46
Skill Endorsements: 1

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0593 seconds using 2.49MB