If I do not use tmux my terminal is the following:
~$ echo $TERM
xterm
If I use tmux by adding the following into .bashr
# tmux configuration
tmux attach &> /dev/null
if [[ ! $TERM =~ screen ]]; then
exec tmux
fi
My .tmux.conf
has a line set-option -g default-terminal "screen-256color"
, but the terminal is the following:
~$ echo $TERM
screen
This makes VIM ugly. How can I get the tmux to use screen-256color? Using gnome terminal on Ubuntu 14.02
screen
by default. This does not affect the colors in VIM however; everything looks just fine. Do you haveset t_Co=256
inside your .vimrc? Also see this page for more information. – Benjamin B. May 06 '15 at 15:15set t_Co=256
. I am asking this question as an outcome of http://unix.stackexchange.com/questions/201779/vim-solarized-color-scheme-looks-wrong-when-using-tmux/201793#201793. Not sure why, but it messes up my VIM. – user1135541 May 06 '15 at 15:17