Vim和Tmux渲染错误 [英] Vim and Tmux rendering error

查看:128
本文介绍了Vim和Tmux渲染错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Tmux和Vim时出现问题.正如您在图片上看到的,当我使用nerdtree(或irssi,实际上是任何终端应用程序)时,我都遇到了这类渲染问题.

I have a problem when using Tmux and Vim. As you can see on the picture when I use nerdtree (or irssi, actually any terminal app), I have these kind of rendering problems.

我键入的每个键都会修改整个终端渲染.

Every key I type modify the entire terminal rendering.

这只是一个图形错误,但是它使我无法正常工作.例如,在我提交的屏幕截图中,打开了nerdtree.

It's only a graphical bug, but it prevents me from working properly. For example, on the screenshot I submitted, nerdtree is opened.

渲染问题主要出现在线条太长(环绕)或我必须滚动(向下或向上)时.

The rendering issue comes mostly when the lines are too long (wrapping) or when I have to scroll (down or up).

我还没有找到解决问题的方法.有人也有这个问题吗?我真的不知道该怎么解决.

I haven't found a way to solve it. Does anybody has this problem too? I really don't know how to solve this.

非常感谢!

推荐答案

解决方案已发布:

tmux set-option -g utf8 off
:set tenc=latin1

tmux set-option -g utf8 on
:set tenc=utf8

取决于您的终端配置.

如果这不能解决任何问题,请尝试

If this didn't fix anything, try

:set isprint=

至少可以让您工作,而看不到神奇的图形字符.

which will at least let you work, short of seeing magical graphic characters.

这篇关于Vim和Tmux渲染错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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