lose vim colorscheme in tmux mode

后端 未结 20 1823
说谎
说谎 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.

提交回复
热议问题