I have found that occasionally when I am hitting esc to enter back into normal mode with VIM after typing some text, the text I just typed will be duplicated 2 or more times.
I’d love to know what is causing this so I can avoid it.
Using VIM within iTerm2 on OSX 10.7.3 if that helps.
That usually happens if you hit a number key (0–9) by accident before you went to insert mode. Try 9iAbEsc. That will give you
But it’s all correct: It tells
vimto insertAb9 times. It’s as with everyvimcommand, if you place a numberNbefore the command,vimrepeats the actionNtimes.