lose vim colorscheme in tmux mode

后端 未结 20 1796
说谎
说谎 2020-12-12 09:13

I\'m running iterm2 and when I\'m in tmux mode the colorscheme I have set in vim does not show up. Only the color scheme I\'ve set in iterm. If I run vim from shell the colo

20条回答
  •  攒了一身酷
    2020-12-12 09:43

    As @romainl mentions above, I needed to force tmux to use 256 colors by adding the -2 flag:

    $ tmux -2
    

    I added alias tmux='tmux -2' to my bash_profile, so, I don't forget :)

提交回复
热议问题