Open ishankhare07 opened 9 years ago
@ishankhare07, it's working for me. Can you show your tmux.conf
file?
I just went through the exercise of fixing this. Here's what works for me.
.bashrc
if [[ -n ${TMUX} ]]; then
export TERM="screen-256color"
else
export TERM="xterm-256color"
fi
.tmux.conf
set-option -g default-terminal "screen-256color"
.vimrc
set t_Co=256
set background=dark
silent! colorscheme solarized " Silence errors in case it isn't installed yet
The key change for me was setting the proper TERM for the shell. I had used xterm-256color for the longest time and just ignored the slight vim/tmux color issues. Once I dug into it I discovered that vi was doing the wrong thing because it didn't realize it was within a screen/tmux environment. Changing the TERM to screen-256color fixed all my issues.
I solved this with this one-liner.
Also, set t_Co=16
on .vimrc
.
On 2015-09-24 17:53, Matt Klich wrote:
I just went through the exercise of fixing this. Here's what works for me.
.bashrc
|if [[ -n ${TMUX} ]]; then export TERM="screen-256color" else export TERM="xterm-256color" fi |
.tmux.conf
|set-option -g default-terminal "screen-256color" |
.vimrc
|set t_Co=256 set background=dark silent! colorscheme solarized " Silence errors in case it isn't installed yet |
The key change for me was setting the proper TERM for the shell. I had used xterm-256color for the longest time and just ignored the slight vim/tmux color issues. Once I dug into it I discovered that vi was doing the wrong thing because it didn't realize it was within a screen/tmux environment. Changing the TERM to screen-256color fixed all my issues.
— Reply to this email directly or view it on GitHub https://github.com/seebi/tmux-colors-solarized/issues/14#issuecomment-142986468.
installation instructions say just to put
cat tmuxcolors-256.conf >> ~/.tmux.conf
all other colors are set except the background color