OSX - sierra iterm2 3.0.13 tmux 2.3 vim 8.0.176
colors work fine in bare iterm2:
but under tmux:
echo $TERM xterm-256color
echo $TERM screen-256color
I'm running out of ideas. and google foo is not helping.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
A search for 'tmux vim colors wrong' turned up this answer. Start tmux with the -2 option to force 256 colors.
t_* is needed because these are not set automatically by vim for anything but
xterm. But tmux only supports
set termguicolors fixed my problem.
long version: https://github.com/vim/vim/issues/993