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 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""