Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Escape Key not working as expected with Neovim and Tmux 2.1 #3593
I am trying to migrate across to using Neovim full time but have come across a bug which is preventing me.
I am running Tmux 2.1 and when I launch a new session and run Neovim, whenever I am in insert mode I have to press escape twice to actually exit insert mode. If I only press escape once and then press the letter 'i' I get an 'é' output in insert mode. This does not happen if I am running Neovim not in a Tmux session, but If I run vim both with and without a tmux session I have no problem escaping insert mode etc..
My setup is Neovim 0.1
Any help or pointers where I am going wrong would be greatly appreciated.
Any idea why this isn't a problem with standard vim? If this is a tmux issue, then tmux should capture the escape for normal Vim as well. Or does normal Vim somehow deciphers the escape sequence sent to it by Tmux (e.g. when you switch out of insert mode, and immediately issue 'gg') and the thing you expected?
Handling keys in terminal never ceases to amaze me.
It is a problem in Vim. The way the problem manifests is different because Vim doesn't handle meta chords by default.