Solarized color scheme works fine when using Konsole + vim, but I can't figure out how to properly configure my computer for a Konsole + tmux +vim usage (please see screenshots on the links).

Below, the configuration I am using.

At Konsole:

user:~$ echo $TERM
user:~$ cat .tmux.conf | grep terminal
set -g default-terminal "xterm-256color" #"screen-256color" gives the same result
user:~$ cat .vimrc
:filetype plugin on    
syntax enable
set term=xterm-256color
let g:solarized_termcolors=256
set t_Co=256
set background=dark
colorscheme solarized

At tmux:

user:~$ echo $TERM

Would you have any suggestion, please?


According to http://blog.sanctum.geek.nz/term-strings/:

" A certain piece of very misleading advice is often given online to users having problems with the way certain command-line applications are displaying in their terminals. [...] This misinformation sometimes extends to suggesting that users put the forced TERM change into their shell startup scripts. The reason this is such a bad idea is that it forces your shell to assume what your terminal is, and thereby disregards the initial terminal identity string sent by the emulator."

Following their suggestion, I have erased from ~/.bashrc, ~/.vimrc and ~/.tmux.conf every mention to the terminal.

Now I have at Konsole:

user:~$ echo $TERM

at tmux:

user:~$ echo $TERM

and everything works well.


I was looking for many solutions and found Flattened color scheme which is basically Solarized but tweaked so good that it worked out of the box in tmux on my machine. Link:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.