aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Herlédan <sylvain.herledan@hrafnagud.info>2017-06-12 17:12:58 +0200
committerSylvain Herlédan <sylvain.herledan@hrafnagud.info>2017-06-12 17:12:58 +0200
commitaa8f454f66aebfc3504392313812d2c58e7b3b89 (patch)
tree77e1c6feafc3c64f5375dec29be59cf3866e9014
parent3bed78d8c3d2b2f1ad6afe320dc5225f551dc05e (diff)
downloaddotfiles-aa8f454f66aebfc3504392313812d2c58e7b3b89.tar.gz
dotfiles-aa8f454f66aebfc3504392313812d2c58e7b3b89.tar.bz2
dotfiles-aa8f454f66aebfc3504392313812d2c58e7b3b89.zip
Fix issue with vim paging inside tmux.
-rw-r--r--vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 93557f8..424e03e 100644
--- a/vimrc
+++ b/vimrc
@@ -76,6 +76,14 @@ nmap <F8> :TagbarToggle<CR>
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