Vim inside Tmux: <C-w>l (swapping between vim splits) enters ^]lfilename^] into vim

南笙酒味 提交于 2019-12-13 05:19:06

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/25495776/vim-inside-tmux-c-wl-swapping-between-vim-splits-enters-lfilename-into

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!