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
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.
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.