Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

That's what I have in my .bashrc

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

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 and all colors are printed correctly. Still what I see in my terminal is this (that's the "desert" theme):


Also the colortest.vim file does not display properly:


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 '14 at 19:20
"term=xterm-256color". I don't know what happens. Is xfce terminal overriding the colours? – Sleeper May 4 '14 at 22:07
It shouldn't be. – Heptite May 4 '14 at 23:30
So do you know how to change it? – Sleeper May 4 '14 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 '14 at 1:56

Your Answer


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

Browse other questions tagged or ask your own question.