Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim and Tmux rendering error

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!

like image 721
Jim Avatar asked Mar 21 '23 01:03

Jim


1 Answers

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.

like image 184
user2987828 Avatar answered Mar 22 '23 14:03

user2987828