Closed persep closed 6 years ago
Add this to your .tmux.conf
set -g default-terminal "screen-256color"
Should fix
Thanks for your suggestion but as I said the $TERM
variable already shows screen-256color
and I also tried tmux-256color
but didn't work . Anyway , my .tmux.conf is:
set -g default-terminal "screen-256color"
set -sg escape-time 0
Also tried with "tmux-256color" but din't work
It look like I'm not the only one https://github.com/morhetz/gruvbox/issues/98#issuecomment-317405479
@persep that's tmux issue unrelated to gruvbox mind if I close this issue as a duplicate of #98? I would like to help you with this one though unfortunately I don't have enough spare time
ok go ahead
Add this to your
.tmux.conf
set -g default-terminal "screen-256color"
Should fix
it works!
At least works after hours trying, the solutions added this to my .tmux.conf
set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",*256col*:Tc"
This is my vi in the terminal:
And this is the same vi inside tmux:
The colors from the default airline theme are changed. My .vimrc is:
Both return
gruvbox
to the command:AirlineTheme
outside and inside tmux.$TERM
isxterm-256color
in the terminal andtmux-256color
inside tmux. I's using Vim 8 1567 and tmux 2.1 (also tried tmux 2.6 but I got the same problem) in Ubuntu for windows