Terminal in Tmux is 256 color but Vim isn't

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
I'm new to Ubuntu. Recently I installed tmux on my Ubuntu 16.04.
The terminal screen in tmux shows 256 color correctly. However, when I opened vim in tmux, the color was different from what normally showed in terminal.
I tried adding set -g default-terminal "screen-256color" in my .tmux.conf file but the problem still exists.
Terminal screen in tmux:

Vim in terminal:

Vim in tmux

16.04 vim colors tmux
add a comment |Â
up vote
1
down vote
favorite
I'm new to Ubuntu. Recently I installed tmux on my Ubuntu 16.04.
The terminal screen in tmux shows 256 color correctly. However, when I opened vim in tmux, the color was different from what normally showed in terminal.
I tried adding set -g default-terminal "screen-256color" in my .tmux.conf file but the problem still exists.
Terminal screen in tmux:

Vim in terminal:

Vim in tmux

16.04 vim colors tmux
unix.stackexchange.com/questions/1045/â¦
â jdwolf
May 25 at 1:12
@jdwolf Even if I launch tmux with -2, the color is still different in vim inside tmux.
â Dyckia
May 25 at 1:32
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm new to Ubuntu. Recently I installed tmux on my Ubuntu 16.04.
The terminal screen in tmux shows 256 color correctly. However, when I opened vim in tmux, the color was different from what normally showed in terminal.
I tried adding set -g default-terminal "screen-256color" in my .tmux.conf file but the problem still exists.
Terminal screen in tmux:

Vim in terminal:

Vim in tmux

16.04 vim colors tmux
I'm new to Ubuntu. Recently I installed tmux on my Ubuntu 16.04.
The terminal screen in tmux shows 256 color correctly. However, when I opened vim in tmux, the color was different from what normally showed in terminal.
I tried adding set -g default-terminal "screen-256color" in my .tmux.conf file but the problem still exists.
Terminal screen in tmux:

Vim in terminal:

Vim in tmux

16.04 vim colors tmux
edited May 25 at 8:10
Zanna
47.8k13116226
47.8k13116226
asked May 25 at 1:05
Dyckia
61
61
unix.stackexchange.com/questions/1045/â¦
â jdwolf
May 25 at 1:12
@jdwolf Even if I launch tmux with -2, the color is still different in vim inside tmux.
â Dyckia
May 25 at 1:32
add a comment |Â
unix.stackexchange.com/questions/1045/â¦
â jdwolf
May 25 at 1:12
@jdwolf Even if I launch tmux with -2, the color is still different in vim inside tmux.
â Dyckia
May 25 at 1:32
unix.stackexchange.com/questions/1045/â¦
â jdwolf
May 25 at 1:12
unix.stackexchange.com/questions/1045/â¦
â jdwolf
May 25 at 1:12
@jdwolf Even if I launch tmux with -2, the color is still different in vim inside tmux.
â Dyckia
May 25 at 1:32
@jdwolf Even if I launch tmux with -2, the color is still different in vim inside tmux.
â Dyckia
May 25 at 1:32
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1040039%2fterminal-in-tmux-is-256-color-but-vim-isnt%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
unix.stackexchange.com/questions/1045/â¦
â jdwolf
May 25 at 1:12
@jdwolf Even if I launch tmux with -2, the color is still different in vim inside tmux.
â Dyckia
May 25 at 1:32