Terminal in Tmux is 256 color but Vim isn't

The name of the pictureThe name of the pictureThe name of the pictureClash 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:



terminal_screen_in_tmux



Vim in terminal:



vim_in_terminal



Vim in tmux



vim_in_tmux







share|improve this question






















  • 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














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:



terminal_screen_in_tmux



Vim in terminal:



vim_in_terminal



Vim in tmux



vim_in_tmux







share|improve this question






















  • 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












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:



terminal_screen_in_tmux



Vim in terminal:



vim_in_terminal



Vim in tmux



vim_in_tmux







share|improve this question














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:



terminal_screen_in_tmux



Vim in terminal:



vim_in_terminal



Vim in tmux



vim_in_tmux









share|improve this question













share|improve this question




share|improve this question








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
















  • 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

Trouble downloading packages list due to a “Hash sum mismatch” error

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

How do I move numbers in filenames, in a batch renaming operation?