Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have the following in my .vimrc:

if has("gui_running")
    colo desert
    " ...
else 
    colo distinguished
    " ...
endif

gvim works fine. When I open vim in gnome-terminal in tmux, the colo above is seemingly ignored. Other directives in the else block execute, but when I enter :colo it returns default.

When I manually enter colo distinguished it works.

I have the usual entries set t_Co=256, etc. elsewhere. So this isn't merely a problem of getting 256-color gnome terminal / tmux.

OS is Ubuntu 12.04 LTS. vim 7.3 2010 Aug 15

share|improve this question
    
If the answer I posted isn't sufficient you should probably show your whole vimrc –  FDinoff Jul 23 '13 at 4:16
    
my whole vimrc is a mess. I probably need troubleshooting suggestions. Perhaps start rebuilding my vimrc from scratch? –  noahz Jul 23 '13 at 4:25
1  
Commenting out half the file and doing a binary search normally works pretty well. If anything post the whole if block if you think it's not affected by anything else –  FDinoff Jul 23 '13 at 4:27
    
Ok, I solved the problem by essentially rebuilding my .vimrc, piece-by-piece. I will delete this question shortly. –  noahz Jul 24 '13 at 3:12
    
I made my dotfiles public: github.com/noahlz/dotfiles/blob/… –  noahz Jul 24 '13 at 3:55
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.