Closed jceb closed 6 years ago
Hm, interesting. I can't repro this. What are your settings for 'timeout'
, 'timeoutlen'
, 'ttimeout'
and 'ttimeoutlen'
?
Here are my settings:
timeout = 1
timeoutlen = 1000
ttimeout = 1
+1 I have the same problem
@mikedfunk: Any tips on how to repro?
I can certainly look at changing the implementation, but without the ability to verify that the changes actually fix the bug, I'd really be flying blind.
This is a known issue with tmux + (n)vim, the following resolves it
tmux.conf
set -s escape-time 0 # Faster key escapes
set -g focus-events on # Let focus events through
vimrc
set ttimeoutlen=0 " Timeout for escape sequences
Ah, yes. The need for focus-events
is already documented:
But we should add something about escape-time
. I've had that in my dotfiles for 7 years now and had totally forgotten about adding it:
I noticed that with
let g:TerminusBracketedPaste = 1
in a TMUX session<Esc>
doesn't leave insert mode right away. For instance<Esc>l
or<Esc>h
writesè
to the buffer and vim stays in insert mode. Outside TMUX sessions<Esc>
works as expected.With the bracketed-paste plugin I didn't have these issues. I assume this is because the plugin doesn't map anything to
<Esc>
. https://github.com/ConradIrwin/vim-bracketed-paste/blob/master/plugin/bracketed-paste.vim#L31