Vim NerdTree corrupts when using Tmux
Asked Answered
B

1

7

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

Ballistics answered 21/7, 2017 at 20:5 Comment(4)
Looks like an issue with your TERM environment variable. Please ensure you've export TERM=screen-256color.Billie
Thanks for pointing out the setting of the TERM. It indeed solves my problem.Ballistics
My issue got solved after setting 'export TERM=screen-256color' in my bashrc. Here's a few doc/link to complement/explain his solution: 1. tmux FAQ noted "most display problems are due to incorrect TERM setting" 2. another question relates to 'TERM'Ballistics
Ah, great that my hunch was right! I've added a full answer. Please accept it by clicking on the outlined checkmark next to it.Billie
B
2

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"

Billie answered 26/7, 2017 at 19:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.