[vim] Ctrl-[ leaves insert mode, same as <Esc>
[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 this functionality to
CodeMirror.

From vim's :help ctrl-[

                                        *i_CTRL-[* *i_<Esc>*
<Esc> or CTRL-[
    End insert or Replace mode, go back to Normal mode.
    Finish abbreviation.
    Note: If your <Esc> 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

anthonygego/CodeMirror,philuchansky/CodeMirror,EasonYi/CodeMirror,anthonygego/CodeMirror,bocharsky-bw/CodeMirror,davidpham87/CodeMirror,hccampos/CodeMirror,crazy4chrissi/CodeMirror,mizchi/CodeMirror,djadmin/CodeMirror,symbla/CodeMirror,apatawari/CodeMirror,ficristo/CodeMirror,abdelouahabb/CodeMirror,vincentwoo/CodeMirror,skylarkcob/CodeMirror,codio/CodeMirror,trumanliu/CodeMirror,nightwing/CodeMirror,increpare/CodeMirror,qweasd1/CodeMirror,InternetGuru/CodeMirror,webida/CodeMirror,loopspace/CodeMirror,elisee/CodeMirror,KamranMackey/CodeMirror,amshali/CodeMirror,Navaneethsen/CodeMirror,NeZaMy/CodeMirror2,happibum/CodeMirror-main,namin/CodeMirror,wbinnssmith/CodeMirror,DustinH/CodeMirror,schanzer/CodeMirror,amsul/CodeMirror,hccampos/CodeMirror,rustemferreira/CodeMirror,TDaglis/CodeMirror,camellhf/CodeMirror,jkaplon/CodeMirror,rustemferreira/CodeMirror,bluesh55/CodeMirror,increpare/CodeMirror,InternetGuru/CodeMirror,SidPresse/CodeMirror,melpon/CodeMirror,axter/CodeMirror,matthewbauer/CodeMirror,CartoDB/CodeMirror,fmoliveira/CodeMirror,codio/CodeMirror,d0liver/CodeMirror,DustinH/CodeMirror,EasonYi/CodeMirror,fivetran/CodeMirror,systay/CodeMirror,kk9599/CodeMirror,namin/CodeMirror,dbarnett/CodeMirror,ssxxue/CodeMirror,NumbersInternational/CodeMirror,loopspace/CodeMirror,ksanaforge/CodeMirror,qiankun007/CodeMirror,flyskyko/CodeMirror,Icenium/CodeMirror,karthikeyansam/CodeMirror,manderson23/CodeMirror,kevinushey/CodeMirror,mightyguava/CodeMirror,NumbersInternational/CodeMirror,KamranMackey/CodeMirror,morrisonwudi/CodeMirror,morrisonwudi/CodeMirror,agendor/CodeMirror,matthewbauer/CodeMirror,jansel/CodeMirror,skylarkcob/CodeMirror,shiren/CodeMirror,agendor/CodeMirror,kolya-ay/CodeMirror,symbla/CodeMirror,tpphu/CodeMirror,camellhf/CodeMirror,kerabromsmu/CodeMirror,ssxxue/CodeMirror,kangkot/CodeMirror,kuangyeheng/CodeMirror,apatawari/CodeMirror,davidpham87/CodeMirror,explorigin/CodeMirror,Icenium/CodeMirror,amshali/CodeMirror,TechnicalPursuit/CodeMirror,sourcelair/CodeMirror,ashmind/CodeMirror,jayaprabhakar/CodeMirror,axter/CodeMirror,ZombieHippie/CodeMirror,Carreau/CodeMirror,sourcelair/CodeMirror,bgrins/CodeMirror,rrandom/CodeMirror,Allenice/CodeMirror,webida/CodeMirror,cintiamh/CodeMirror,bocharsky-bw/CodeMirror,jkaplon/CodeMirror,MarcelGerber/CodeMirror,mtaran-google/CodeMirror,MarcelGerber/CodeMirror,pjkui/CodeMirror,cben/CodeMirror,supriyantomaftuh/CodeMirror,dbarnett/CodeMirror,rrandom/CodeMirror,kerabromsmu/CodeMirror,kuangyeheng/CodeMirror,vincentwoo/CodeMirror,sekcheong/CodeMirror,jhnesk/CodeMirror,mihailik/CodeMirror,ficristo/CodeMirror,karevn/CodeMirror,isdampe/CodeMirror,jochenberger/CodeMirror,mihailik/CodeMirror,abdelouahabb/CodeMirror,AlanWasTaken/codemirror,ejgallego/CodeMirror,karevn/CodeMirror,ashmind/CodeMirror,supriyantomaftuh/CodeMirror,Aliccer/CodeMirror,TDaglis/CodeMirror,TechnicalPursuit/CodeMirror,isdampe/CodeMirror,explorigin/CodeMirror,kangkot/CodeMirror,trumanliu/CodeMirror,ThebingServices/CodeMirror,kangkot/CodeMirror,codio/CodeMirror,alur/CodeMirror,amshali/CodeMirror,apatawari/CodeMirror,jhnesk/CodeMirror,bfrohs/CodeMirror,fmoliveira/CodeMirror,rasata/CodeMirror,adobe/CodeMirror2,kk9599/CodeMirror,Navaneethsen/CodeMirror,mightyguava/CodeMirror,Dominator008/CodeMirror,gkoberger/CodeMirror,CartoDB/CodeMirror,flyskyko/CodeMirror,notepadqq/CodeMirror,Carreau/CodeMirror,dudb/CodeMirror,djadmin/CodeMirror,kevinushey/CodeMirror,loopspace/CodeMirror,schanzer/CodeMirror,ssxxue/CodeMirror,bgrins/CodeMirror,angelozerr/CodeMirror,sanyaade-iot/CodeMirror,ashmind/CodeMirror,dbarnett/CodeMirror,TechnicalPursuit/CodeMirror,sekcheong/CodeMirror,hackmdio/CodeMirror,MarcelGerber/CodeMirror,rustemferreira/CodeMirror,hccampos/CodeMirror,buchslava/CodeMirror,qweasd1/CodeMirror,mightyguava/CodeMirror,thomasjm/CodeMirror,AlanWasTaken/codemirror,ksanaforge/CodeMirror,TDaglis/CodeMirror,ejgallego/CodeMirror,mizchi/CodeMirror,karthikeyansam/CodeMirror,manderson23/CodeMirror,EasonYi/CodeMirror,Dominator008/CodeMirror,buchslava/CodeMirror,sanyaade-iot/CodeMirror,antimatter15/CodeMirror,sourcelair/CodeMirror,fmoliveira/CodeMirror,grzegorzmazur/CodeMirror,cintiamh/CodeMirror,vincentwoo/CodeMirror,INTELOGIE/CodeMirror,happibum/CodeMirror-main,grzegorzmazur/CodeMirror,Dominator008/CodeMirror,notepadqq/CodeMirror,rasata/CodeMirror,jpolitz/CodeMirror,xeronith/CodeMirror,philuchansky/CodeMirror,SidPresse/CodeMirror,Allenice/CodeMirror,wingify/CodeMirror,thomasjm/CodeMirror,SidPresse/CodeMirror,trumanliu/CodeMirror,symbla/CodeMirror,qiankun007/CodeMirror,Jisuanke/CodeMirror,mizchi/CodeMirror,elisee/CodeMirror,xeronith/CodeMirror,melpon/CodeMirror,angelozerr/CodeMirror,INTELOGIE/CodeMirror,crazy4chrissi/CodeMirror,GerHobbelt/CodeMirror2,sekcheong/CodeMirror,kerabromsmu/CodeMirror,Jisuanke/CodeMirror,joshterrell805-historic/CodeMirror,nawroth/CodeMirror,vanloswang/CodeMirror,nawroth/CodeMirror,DustinH/CodeMirror,Aliccer/CodeMirror,ZombieHippie/CodeMirror,rrandom/CodeMirror,r7kamura/CodeMirror,pinbe/CodeMirror,increpare/CodeMirror,bfrohs/CodeMirror,rasata/CodeMirror,camellhf/CodeMirror,notepadqq/CodeMirror,adobe/CodeMirror2,amireh/codemirror,thomasjm/CodeMirror,jochenberger/CodeMirror,AlanWasTaken/codemirror,NumbersInternational/CodeMirror,Jisuanke/CodeMirror,ficristo/CodeMirror,ThebingServices/CodeMirror,wbinnssmith/CodeMirror,systay/CodeMirror,djadmin/CodeMirror,pabloferz/CodeMirror,Allenice/CodeMirror,isdampe/CodeMirror,mtaran-google/CodeMirror,grzegorzmazur/CodeMirror,bluesh55/CodeMirror,nightwing/CodeMirror,antimatter15/CodeMirror,webida/CodeMirror,jpolitz/CodeMirror,shiren/CodeMirror,pjkui/CodeMirror,hackmdio/CodeMirror,belph/CodeMirror,agendor/CodeMirror,InternetGuru/CodeMirror,happibum/CodeMirror-main,morrisonwudi/CodeMirror,webida/CodeMirror,bgrins/CodeMirror,NeZaMy/CodeMirror2,dudb/CodeMirror,abdelouahabb/CodeMirror,KamranMackey/CodeMirror,belph/CodeMirror,wingify/CodeMirror,pabloferz/CodeMirror,Icenium/CodeMirror,elisee/CodeMirror,karevn/CodeMirror,crazy4chrissi/CodeMirror,kolya-ay/CodeMirror,melpon/CodeMirror,michaelerobertsjr/CodeMirror,mtaran-google/CodeMirror,r7kamura/CodeMirror,ZombieHippie/CodeMirror,antimatter15/CodeMirror,nawroth/CodeMirror,dperetti/CodeMirror,gkoberger/CodeMirror,michaelerobertsjr/CodeMirror,qiankun007/CodeMirror,namin/CodeMirror,fivetran/CodeMirror,dperetti/CodeMirror,mihailik/CodeMirror,sanyaade-iot/CodeMirror,d0liver/CodeMirror,cintiamh/CodeMirror,kuangyeheng/CodeMirror,tpphu/CodeMirror,jessegrosjean/CodeMirror,r7kamura/CodeMirror,pinbe/CodeMirror,sgoo/CodeMirror,bluesh55/CodeMirror,schanzer/CodeMirror,dperetti/CodeMirror,qweasd1/CodeMirror,jpolitz/CodeMirror,jessegrosjean/CodeMirror,supriyantomaftuh/CodeMirror,adobe/CodeMirror2,sgoo/CodeMirror,dudb/CodeMirror,fpco/codemirror,karthikeyansam/CodeMirror,nightwing/CodeMirror,Aliccer/CodeMirror,vanloswang/CodeMirror,kk9599/CodeMirror,hackmdio/CodeMirror,jayaprabhakar/CodeMirror,ksanaforge/CodeMirror,vanloswang/CodeMirror,jessegrosjean/CodeMirror,amsul/CodeMirror,alur/CodeMirror,davidpham87/CodeMirror,pabloferz/CodeMirror,flyskyko/CodeMirror,INTELOGIE/CodeMirror,belph/CodeMirror,philuchansky/CodeMirror,bocharsky-bw/CodeMirror,bfrohs/CodeMirror,wingify/CodeMirror,manderson23/CodeMirror,ThebingServices/CodeMirror,pinbe/CodeMirror,matthewbauer/CodeMirror,shiren/CodeMirror,d0liver/CodeMirror,ejgallego/CodeMirror,skylarkcob/CodeMirror,tpphu/CodeMirror,gkoberger/CodeMirror,buchslava/CodeMirror,fpco/codemirror,pjkui/CodeMirror,Navaneethsen/CodeMirror,systay/CodeMirror,cben/CodeMirror,joshterrell805-historic/CodeMirror,jayaprabhakar/CodeMirror,michaelerobertsjr/CodeMirror,jansel/CodeMirror,anthonygego/CodeMirror,jkaplon/CodeMirror,alur/CodeMirror,Ermlab/CodeMirror,GerHobbelt/CodeMirror2,NeZaMy/CodeMirror2,Ermlab/CodeMirror,xeronith/CodeMirror,axter/CodeMirror