From aa8f454f66aebfc3504392313812d2c58e7b3b89 Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Mon, 12 Jun 2017 17:12:58 +0200 Subject: Fix issue with vim paging inside tmux. --- vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 93557f8..424e03e 100644 --- a/vimrc +++ b/vimrc @@ -76,6 +76,14 @@ nmap :TagbarToggle highlight ExtraWhitespace ctermbg=red autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ +" Workaround for tmux paging issue +if &term =~ '256color' + " disable Background Color Erase (BCE) so that color schemes + " render properly when inside 256-color tmux and GNU screen. + " see also http://snk.tuxfamily.org/log/vim-256color-bce.html + set t_ut= +endif + " Python files autocmd BufRead,BufNewFile *.py :setlocal \ tabstop=4 -- cgit v1.2.3-70-g09d2