NERDTree goes whack in tmux session as in the picture. The same problem exists when windows are split. But now i am using powerline This time the Vim status goes whack(in the picture see the middle portion of the status line) in tmux. What is wrong?
Vim goes whack with tmux
Asked Answered
I figured the solution after a long time, looking at a dotfile repo in github. It was just a single line of code that made the communication between Vim and Tmux smooth.
In the .tmux.conf
file, add this line
set-window-option -g utf8 on
Thanks. Mine was working perfectly until it starting behaving similarly one day. This fixed the issue. The Powerline fonts are not appearing correctly though but at least Vim is behaving sane again. –
Atone
Great :) To fix the powerline fonts, you need to install few libs depending on your OS, may be this would help github.com/Lokaltog/powerline-fonts –
Photomontage
This is a testament to vim's longevity. A 3+ year solution still works. This solution didn't work for me until after I restarted my terminal. –
Manolete
No longer works. I get 'invalid option utf8' when I source after changing the conf. –
Hypodermis
© 2022 - 2024 — McMap. All rights reserved.
$TERM
inside and outside of tmux? – Reprinta
's that is greater then your screen width (let &stl=repeat('a', &columns*2)
). You will see statusline starting with<aaaaa
and ending withaaa
. Not statusline on two lines like shown above. – Ursulaursulette&ambiwidth
setting in vim and similar setting in terminal emulator aresingle
and (equivalent of)double
respectively). But that is not the case here: with double ambiwidth in terminal emulator you would see gaps between powerline hard dividers (filled arrows) and one of the adjacent segments on one side. – Ursulaursulette$ echo $COLUMNS
in and out of tmux and:echo &columns
in Vim could be useful. – ReprintLN
). But I can’t say what is the problem and who is responsible: all problems of this kind I encountered always resulted in all powerline characters (not) working in the identical manner, never part of the characters near the middle. – Ursulaursulette