Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on ubuntu15.04 with tmux inside gnome-terminal #14

Open
ishankhare07 opened this issue Sep 8, 2015 · 4 comments
Open

Not working on ubuntu15.04 with tmux inside gnome-terminal #14

ishankhare07 opened this issue Sep 8, 2015 · 4 comments

Comments

@ishankhare07
Copy link

all other colors are set except the background color

@rpereira
Copy link

@ishankhare07, it's working for me. Can you show your tmux.conf file?

@elementalvoid
Copy link

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.

@rpereira
Copy link

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
#14 (comment).

@ishankhare07
Copy link
Author

installation instructions say just to put

cat tmuxcolors-256.conf >> ~/.tmux.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants