marijnh/CodeMirror — pull request #997 by ivanov (2012-11-23 22:20:42+00:00)
Title: [vim] Ctrl-[ leaves insert mode, same as <Esc>

As a die-hard vim addict, long ago, I retrained myself to type `Ctrl-[` to
leave insert mode. This sends the same control sequence as escape in
many other places, actually, and this patch brings such functionality to
CodeMirror.

From vim's `:help ctrl-[`
```
*i_CTRL-[* *i_*
or CTRL-[
End insert or Replace mode, go back to Normal mode.
Finish abbreviation.
Note: If your key is hard to hit on your keyboard, train
yourself to use CTRL-[.
```
Typing `CTRL-[` is particularly easy when caps-lock is remapped
to being another `CTRL` key, since now neither hand needs to move away
form the homerow, and both little fingers just slide a little, the left
little finger slides to the right to where caps lock used to be, and the
right little finger slides a little bit up to the `[` key