In MacVim and terminal Vim, everything works fine and I have no problems. As soon as I jump into tmux and run Vim there, the escape key starts having a delay of about 1 second and shows up in Vim as ^[
.
I'll hit the escape key to exit insert mode but around a 1 second delay will happen before Vim reacts and takes me back to normal mode.
If I type Ctrl+o
to get temporarily to insert mode it immediately pops into normal mode with no delay.
If I type jj
to get to normal mode (a shortcut I set) it still takes around a second. This leads me to think that the problem may be with Vim and not tmux
I've already set set -sg escape-time 0
in my tmux.conf but it hasn't helped at all.
Any ideas?
See https://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior.
The issue is with a tmux escape delay. The tmux setting below should correct it:
set -s escape-time 0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With