Vim 开始使用 tmux [英] Vim goes whack with tmux

查看:28
本文介绍了Vim 开始使用 tmux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NERDTree 在 tmux 会话中如图片所示.拆分窗口时也存在同样的问题.但是现在我正在使用 powerline 这一次 Vim 状态变了(在图片中看到中间部分状态行)在 tmux 中.怎么了?

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?

推荐答案

经过很长时间,我找到了解决方案,在 github 中查看了一个 dotfile repo.只需一行代码,VimTmux 之间的通信就变得顺畅了.

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.

.tmux.conf文件中,添加这一行

set-window-option -g utf8 on

这篇关于Vim 开始使用 tmux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆