使用 Tmux 时 Vim NerdTree 损坏 [英] Vim NerdTree corrupts when using Tmux

查看:25
本文介绍了使用 Tmux 时 Vim NerdTree 损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题所述,当我在 vim 中通过control + f"向下滚动屏幕时,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 , most of the folder information, supposed to appear in the left bar, is tangled and covered by the file content.

我确实在 stackoverflow 中发现了类似的问题,但没有一个找到好的解决方案.

I did find similar issues posted in stackoverflow, but none of those got a good solution yet.

谢谢

推荐答案

把它放到你的 ~/.bashrc 中:

export TERM=screen-256color

正如您从 tmux FAQ 中发现的那样,大多数显示问题是由于不正确的 TERM 设置"

As you've found out from the tmux FAQ, "most display problems are due to incorrect TERM setting"

这篇关于使用 Tmux 时 Vim NerdTree 损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆