问题
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).
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!
回答1:
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.
回答2:
Is this a colour issue? If so these might help you:
- https://unix.stackexchange.com/questions/1045/getting-256-colors-to-work-in-tmux
- http://reyhan.org/2013/12/colours-on-vim-and-tmux.html
- Vim: Difference between t_Co=256 and term=xterm-256color in conjunction with TMUX
回答3:
export TERM=screen-256color
solved my issue. See more in the post.
来源:https://stackoverflow.com/questions/22715071/vim-and-tmux-rendering-error