Tmux 中的 Vim:<C-w>l(在 vim 拆分之间交换)将 ^]lfilename^] 输入到 vim [英] Vim inside Tmux: <C-w>l (swapping between vim splits) enters ^]lfilename^] into vim

查看:29
本文介绍了Tmux 中的 Vim:<C-w>l(在 vim 拆分之间交换)将 ^]lfilename^] 输入到 vim的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在 tmux 中打开了 vim,当我在刚刚导航离开的拆分中的 vim 拆分(不是 tmux 选项卡或 vim 选项卡)之间导航时,我会输入以下内容,就好像它是文件中的文本一样:^]k<文件名>^].这段文字出现在我刚刚离开的行上.l|k|j|h 都有这个影响.此外,当我使用 :tabn:tabp 时,vim 中的命令行填充了相同的文本.如果我移动窗口,它就会消失,所以我知道它实际上并没有修改文件,但是在我的屏幕上看到它很烦人.

If I have vim open inside tmux, when I navigate between vim splits (not tmux tabs or vim tabs) in the split I just navigated away from, I get the following entered as if it was text in the file: ^]k<filename>^]. This text appears on the line I just left. <C-w>l|k|j|h all have this affect. Additionally, when I use :tabn or :tabp, the command line in vim is filled with the same text. It disappears if I move the window, so I know its not actually modifying the file, but it is annoying to see it all over my screen.

有没有人见过这种情况发生在他们身上,或者知道如何解决?

Has anyone seen this happen to them before, or know how to fix it?

推荐答案

您的 TERM 变量设置不正确.它应该设置为 screen 或 screen-256color.

Your TERM variable is set improperly. It should be set to either screen or screen-256color.

这篇关于Tmux 中的 Vim:&lt;C-w&gt;l(在 vim 拆分之间交换)将 ^]lfilename^] 输入到 vim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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