It's totally wrong to set $TERM, default-terminal as xterm-256color. This causes scrolling problem with iTerm + Tmux + VIM, which cost me lots of time to find the solution. Please remove the advice from README.
PLEASE NOTE: most display problems are due to incorrect TERM! Before
reporting problems make SURE that TERM settings are correct inside and
outside tmux.
Inside tmux TERM must be "screen", "tmux" or similar (such as "tmux-256color").
Don't bother reporting problems where it isn't!
Outside, it should match your terminal: particularly, use "rxvt" for rxvt
and derivatives.
The correct way to enable true color of tmux:
set -g default-terminal "screen-256color"
# or
# set -g default-terminal "tmux-256color"
# the setting below enables true color support of tmux
set -ga terminal-overrides ",*256col*:Tc"
Besides, additional settings should be used to enable true color support in VIM just as README says.
Sorry, it seems the bumpy scrolling still exists when open files in split windows within VIM. Besides, setting default-terminal as non-xterm cause inconsistent keybindings inside tmux.
It's totally wrong to set
$TERM
,default-terminal
asxterm-256color
. This causes scrolling problem with iTerm + Tmux + VIM, which cost me lots of time to find the solution. Please remove the advice from README.Just quote what is written in Tmux's FAQ:
The correct way to enable true color of tmux:
Besides, additional settings should be used to enable true color support in VIM just as README says.