Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim goes whack with tmux

enter image description here

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?

like image 647
Vysakh Sreenivasan Avatar asked May 04 '13 12:05

Vysakh Sreenivasan


People also ask

Why use tmux with Vim?

Tmux allows to split the screen horizontally into two terminal windows: the upper one for Vim (possible with multiple vertical split windows) and the bottom one containing a IPython console.

How do I enable Vim mode in Tmux?

Default keybinding to get into copy mode is prefix+[ . If you are a vim user you will likely want to use vi style keys, add this to your ~/. tmux. conf file to enable vi mode.


1 Answers

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
like image 62
Vysakh Sreenivasan Avatar answered Oct 13 '22 12:10

Vysakh Sreenivasan