lose vim colorscheme in tmux mode

后端 未结 20 1812
说谎
说谎 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:27

    If you use tmuxinator or mux, you will need to add these in .bashrc or .zshrc:

    alias tmux='TERM=screen-256color tmux -2'
    alias tmuxinator='TERM=screen-256color tmuxinator'
    alias mux='TERM=screen-256color mux'
    

    These forces to use 256-color in terminal.

    Then tmux, tmuxinator and mux command will all work.

提交回复
热议问题