I have installed tmux but now text mode vim colorschemes do not fill the background colour properly. Here is how it looks with colorscheme xoria256 in the normal Ubuntu 14.10 terminal:
And here when I run it in the exact same terminal after tmux:
So as you can see the desktop is showing through anywhere where there is no text in vim. I have a 256 color terminal.
My .tmux.conf:
~ cat .tmux.conf
set -g mode-mouse on
set -g default-terminal "screen-256color"
and I have a 256 colour terminal:
~ tput colors
256
How do I get tmux to work properly with vim 256-colour colorschemes which work fine in the normal terminal?
gnome-terminal
. Try launching tmux withTERM=xterm tmux
and see if it behaves differently. Ifxterm
doesn't work, tryxterm-256color
orxterm-color
.$TERM
? If it’s notscreen-256color
, try launchingvim
asTERM=screen-256color vim
, then make sure no startup script setsTERM
(or, if you need to do that to work around buggy software, make sure it checks the original value first).