From 459aeca4315774469a4d198aa617fda789cec693 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 1 May 2013 09:48:08 -0400 Subject: [PATCH] Fix vim background colour issue with tmux --- .vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vimrc b/.vimrc index b42dbee..b0d6513 100644 --- a/.vimrc +++ b/.vimrc @@ -82,6 +82,14 @@ set colorcolumn=90 " Show trailing whitespace set list listchars=tab:»·,trail:· +" Fix vim's background colour erase - http://snk.tuxfamily.org/log/vim-256color-bce.html +if &term =~ '256color' + " Disable Background Color Erase (BCE) so that color schemes + " work properly when Vim is used inside tmux and GNU screen. + " See also http://snk.tuxfamily.org/log/vim-256color-bce.html + set t_ut= +endif + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " CUSTOM AUTOCMDS """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""