[vim] fix cursor jump in `Shift-Y`
[vim] fix cursor jump in `Shift-Y`

Also refactor `countTimes` and get rid of confusing global `yank`.

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