Vim and Tmux rendering error
Asked Answered
V

3

5

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!

Ventage answered 28/3, 2014 at 14:4 Comment(3)
haha thanks Kent ;) thank you for adding me the pic too :)Ventage
u r welcome.. I am sitting in office, tinypic was backlisted by our company proxy for some reason. Therefore I cannot see your image until I let SO bring it here.... :) you better briefly explain, what problem do you have. The screenshot cannot be enlarged, one (at least me) can hardly see the problem there.Spiegleman
Possible duplicate of Vim goes whack with tmuxFilipino
C
7

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.

Cheliform answered 28/3, 2014 at 14:39 Comment(4)
Indeed that was the solution! Thank you very much :)Ventage
The usual way on stackoverflow.com to say that is to click on the accept mark just below the score (currently the big 0) of my answer.Cheliform
I know, and I have tried but I need 15 reputations to be able to upvote, but don't worry I will come back to it and will not forget to upvote it. It saved me lots of time!Ventage
@Jim: You talk about "upvoting", I talk about "Accept". The "Accept" button will also reward you some rep.Cheliform
S
1

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

Sokol answered 26/7, 2017 at 19:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.