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!

Jim
  • 51
  • 1
  • 4
  • haha thanks Kent ;) thank you for adding me the pic too :) – Jim Mar 28 '14 at 14:28
  • 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. – Kent Mar 28 '14 at 14:42
  • Possible duplicate of [Vim goes whack with tmux](https://stackoverflow.com/questions/16374503/vim-goes-whack-with-tmux) – BSMP Jul 27 '17 at 03:03

3 Answers3

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.

Community
  • 1
  • 1
user2987828
  • 1,116
  • 1
  • 10
  • 33
  • Indeed that was the solution! Thank you very much :) – Jim Mar 28 '14 at 15:06
  • 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. – user2987828 Apr 07 '14 at 14:13
  • 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! – Jim Apr 09 '14 at 07:24
  • @Jim: You talk about "upvoting", I talk about "Accept". The "Accept" button will also reward you some rep. – user2987828 Jan 06 '15 at 08:35
0

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