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

Ingo Karkat
  • 167,457
  • 16
  • 250
  • 324
  • Looks like an issue with your `TERM` environment variable. Please ensure you've `export TERM=screen-256color`. – Ingo Karkat Jul 26 '17 at 12:35
  • Thanks for pointing out the setting of the `TERM`. It indeed solves my problem. – Haoran Wang Jul 26 '17 at 18:46
  • 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](https://github.com/tmux/tmux/wiki/FAQ) noted "most display problems are due to incorrect TERM setting" 2. [another question relates to 'TERM'](https://unix.stackexchange.com/questions/139082/zsh-set-term-screen-256color-in-tmux-but-xterm-256color-without-tmux) – Haoran Wang Jul 26 '17 at 18:54
  • 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. – Ingo Karkat Jul 26 '17 at 19:05

1 Answers1

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"

Ingo Karkat
  • 167,457
  • 16
  • 250
  • 324