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.set t_Co=256
. I am asking this question as an outcome of unix.stackexchange.com/questions/201779/…. Not sure why, but it messes up my VIM.