问题
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