-->

Vim NerdTree corrupts when using Tmux

2020-04-07 10:03发布

问题:

As described in the title, the nerdtree just corrupts when I'm scrolling down the screen in vim by "control + f". As shown in , 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

回答1:

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"