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 colorscheme appears correct - its only when I'm in tmux mode.
I've tried setting :colorscheme molokai
when in vim (see screenshot below) and it doesn't change - again, the default colorscheme for iterm2 remains.
Am I missing some setting to iterm or tmux.conf? My dotfles are up on github here.
If you find yourself in the same sitation as me, that none of the above worked.. try this:
in
.tmux.conf
:in bash config (maybe
.bashrc
or.bash_profile
):and then run:
and then relaunch tmux
In order to set up correct color and to get rid of rendering issue in both Ubuntu and Mac:
check this
In case anyone needs 24-bit color support:
Tmux supports 24-bit color as of version 2.2. If your terminal supports 24-bit color, add your terminal to the terminal-overrides setting. For example,
My environment checklist:
xterm-256color
)xterm-256color
to.vimrc
)set -ga terminal-overrides ",xterm-256color:Tc"
to.tmux.conf
)Nothing else I need to add in
.bashrc
or.zshrc
.Hope this could help.
Since this is the first result on Google and since none of the above helped..wanted to post this so that someone might find it helpful
in
.vimrc
:HTH
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
:which was redondant with another instruction anyway.
Now, with the following line found in previous anwsers in my
.tmux.conf
:all is nice and colorful.