Fix vim background colour issue with tmux

This commit is contained in:
Michael Campagnaro 2013-05-01 09:48:08 -04:00
parent 47d194015a
commit 459aeca431

8
.vimrc
View File

@ -82,6 +82,14 @@ set colorcolumn=90
" Show trailing whitespace " Show trailing whitespace
set list listchars=tab:»·,trail 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 " CUSTOM AUTOCMDS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""