Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim NerdTree corrupts when using Tmux

Tags:

vim

tmux

nerdtree

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

like image 302
Haoran Wang Avatar asked Jul 21 '17 20:07

Haoran Wang


1 Answers

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"

like image 140
Ingo Karkat Avatar answered Nov 01 '22 05:11

Ingo Karkat