Search code examples
vimtmuxnerdtree

Vim NerdTree corrupts when using Tmux


As described in the title, the nerdtree just corrupts when I'm scrolling down the screen in vim by "control + f". As shown in screen shot, most of the folder information, supposed to appear in the left bar, is tangled and covered by the file content.

I did find similar issues posted in stackoverflow, but none of those got a good solution yet.

Thanks


Solution

  • Put this into your ~/.bashrc:

    export TERM=screen-256color
    

    As you've found out from the tmux FAQ, "most display problems are due to incorrect TERM setting"