vimtmuxstatusline

airline.vim does not work inside tmux


I am new to tmux and also not an expert on VIM, I tried to use tmux these days, but seems that airline disappeared when I used vim inside tmux. I would like to show you the screen shots and hopefully anyone can help me solve this problem.

airline in vim

airline inside tmux


Solution

  • You need to correctly set $TERM environment variable to make vim properly detect 256 colors support by doing the following before opening vim:

    export TERM=screen-256color