Vim NerdTree corrupts when using Tmux

泪湿孤枕 提交于 2019-12-01 17:29:35

问题


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"



来源:https://stackoverflow.com/questions/45245919/vim-nerdtree-corrupts-when-using-tmux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!