Vim and Tmux rendering error

4k Views Asked by At

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

There are 3 best solutions below

0
On

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

4
On

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.

0
On