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.

That's what I have in my .bashrc

if [ -n "$DISPLAY" -a "$TERM" == "xterm" ]; then
    export TERM=xterm-256color
fi

In my .vimrc I have:

set t_Co=256

echo $TERM prints xterm-256color

tput colors prints 256

I've also runned a script called 256colors2.pl and all colors are printed correctly. Still what I see in my terminal is this (that's the "desert" theme):

desert

Also the colortest.vim file does not display properly:

colortest

Apparently it only shows the default color palette of my terminal.

share|improve this question
    
Just to confirm, what does the output of ":verbose set term?" (with the question mark as part of the command) say? –  Heptite May 4 at 19:20
    
"term=xterm-256color". I don't know what happens. Is xfce terminal overriding the colours? –  Sleeper May 4 at 22:07
    
It shouldn't be. –  Heptite May 4 at 23:30
    
So do you know how to change it? –  Sleeper May 4 at 23:41
    
Unfortunately I don't know what's wrong, so I don't. It shouldn't make any difference, but what happens if you do :set term=xterm-color in Vim? –  Heptite May 5 at 1:56

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.