w0ng / vim-hybrid

A dark color scheme for Vim
1.48k stars 235 forks source link

Not compatible with tmux terminal #35

Open nshigit opened 8 years ago

nshigit commented 8 years ago

I am using xshell 5.0 from NetSarang. My LinuxBox is Debian GNU/Linux 8 (jessie) x86_64 vim version is VIM - Vi IMproved 7.4, 'hybrid' is install by https://github.com/kepbod/ivim

Hybrid works fine in xshell but it can't show correctly in tmux environment.

tmux xshell

w0ng commented 8 years ago

What's the output of echo $TERM when you're in xshell by itself, and what's the output when tmux is running?

Try adding in your ~/.tmux.conf

set-option -g default-terminal "screen-256color"

If that doesn't help, try adding in your ~/.vimrc:

set t_Co=256
nshigit commented 8 years ago

echo $TERMscreen After modified .tmux.conf,$TERM is 'screen-256color',it doesn't work.Adding "set t_Co=256' doesn't work too. Date: Wed, 17 Feb 2016 00:45:27 -0800 From: notifications@github.com To: vim-hybrid@noreply.github.com CC: nshi_nb@hotmail.com Subject: Re: [vim-hybrid] Not compatible with tmux terminal (#35)

What's the output of echo $TERM when you're in xshell by itself, and what's the output when tmux is running?

Try adding in your ~/.tmux.conf

set-option -g default-terminal "screen-256color"

If that doesn't help, try adding in your ~/.vimrc:

set t_Co=256

— Reply to this email directly or view it on GitHub.

w0ng commented 8 years ago

Sorry, not sure what's up. Sounds like a terminal issue. Does the same thing happen with other terminals on windows e.g. KiTTY/PuTTY, or other vim themes?

trcjr commented 8 years ago

Try adding

set-option -g default-terminal "screen-256color"

to ~/.tmux.conf

kepbod commented 8 years ago

Try to open tmux with -2 option tmux -2

selfuryon commented 7 years ago

I have the same issue. When i use tmux -2 all works fine but it's some annoying... Setting screen-256color and set t_Co=256 didn't help...