tmux 下 vim 显示色块,不能完整显示颜色,vim8 以上版本解决了此问题,注意注释下面两种配置
-
使用term
if exists('$TMUX') set term=screen-256color endif
-
禁用背景色
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
网友评论