Closed l-qing closed 1 year ago
Vim's Operator-Pending mode was interrupted when switching tmux focus.
cw
a:b
a
z
ESC
z:b
b
.
z:zb
z:z
If skip the step 2 and 3, the result is expect. I think the vim exit and reenter insert mod when switch tmux window.
MacOS: 10.15.2 Vim: 8.2 Tmux: 3.0a
.vimrc
if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif call plug#begin('~/.vim/bundle') Plug 'tmux-plugins/vim-tmux-focus-events' call plug#end()
set -s focus-events on
Vim's Operator-Pending mode was interrupted when switching tmux focus.
prepare:
steps:
cw
above words in vim. [test string:a:b
] cursor on the character ofa
.z
)ESC
to normal mode. [test string changed toz:b
]b
.
command result: [test string changed toz:zb
] expect: [test string changed toz:z
]If skip the step 2 and 3, the result is expect. I think the vim exit and reenter insert mod when switch tmux window.
environments:
MacOS: 10.15.2 Vim: 8.2 Tmux: 3.0a
vim config:
.vimrc
tmux config: