lose vim colorscheme in tmux mode

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

    Just had to deal with this problem, and although all previously posted answers were helpful, they did not solve the issue in my case.

    My problem was fixed by removing the following line in my .vimrc:

    set termguicolors
    

    which was redondant with another instruction anyway.

    Now, with the following line found in previous anwsers in my .tmux.conf:

    export TERM="screen-256color"
    

    all is nice and colorful.

    0 讨论(0)
  • 2020-12-12 09:47

    I had the same problem. Only difference was I am using solarize rather then molokai.

    To fix the issue, I have set up an alias in ~/.bashrc:

    alias tmux="TERM=screen-256color-bce tmux"
    

    And set up the default-terminal option in ~/.tmux.conf:

    set -g default-terminal "xterm"
    

    Lastly, do $ source ~/.bashrc to load new alias.

    0 讨论(0)
提交回复
热议问题