Vim and Tmux rendering error

2019-05-04 21:06发布

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.

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).

enter image description here

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

Many thanks!

3条回答
【Aperson】
2楼-- · 2019-05-04 21:32

Solution already posted:

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

or

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

depending on your terminal configuration.

If this didn't fix anything, try

:set isprint=

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

查看更多
神经病院院长
4楼-- · 2019-05-04 21:51

export TERM=screen-256color solved my issue. See more in the post.

查看更多
登录 后发表回答