Home  >  Q&A  >  body text

How to resolve conflicts between tmux and vim

How to solve the problem that vim cannot use airline under tmux, the buffer of the picture is not highlighted, Google found that it is incompatible with tmux
If I don’t open tmux, the display is normal

.vimrc

Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'

let g:airline#extensions#tabline#enabled = 1
大家讲道理大家讲道理2712 days ago823

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 16:37:34

    Have you changed the terminal type?

    reply
    0
  • 黄舟

    黄舟2017-05-16 16:37:34

    Possibilities that can be thought of:

    Check your terminal configuration first. . Is it only vim 显示不了颜色?别的都正常么?如果其他也不正常,那就去调终端的设置。
    vim 里是只有 airline that has a problem? Are there any problems with syntax recognition and highlighting?

    1. Check the .vimrccolor attribute settings

    2. If the above is ok, do it in vim :color 或者 :colorscheme. Press tab and see if anything happens. If you execute it directly, it may be possible to restore them to default (if you have configured the things in the color folder yourself)

    3. If it still doesn’t solve the problem, try reinstalling the plug-in. It is possible that your color pattern cannot be found. So there is no color

    If none of the above can be solved. . Try :scriptnames and see if all your scripts are loaded. . Mainly depends on whether the color matching is loaded

    reply
    0
  • Cancelreply