prompt-toolkit / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
2.52k stars 160 forks source link

Ctrl + [ does not exit insert mode #134

Open voyeg3r opened 4 years ago

voyeg3r commented 4 years ago

In classical vim Ctrl+[ exits insert mode

lieryan commented 4 years ago

Can't reproduce, Ctrl+[ works for me to exit insert mode. This is more likely have something to do with your terminal setting rather than pyvim. In most terminals, pressing Esc should send the exact same escape sequence code as pressing Ctrl+[, programs running in the terminal (including vim and pyvim) can't distinguish the two. Your terminal and/or keyboard setting must be doing something unusual if Ctrl+[ doesn't behave exactly the same as Esc.