Often when I'm in Insert mode, I'll hit Esc to get into Normal mode, and then immediately hit O to begin a new line above the cursor and go into Insert mode there.
But when I do that, there is a 1-second delay after I hit the O before there is any visible response. Furthermore if I begin typing the new text during that 1-second delay, if the new text begins with any of a certain set of characters (e.g. j,k,m,n,o), I end up in the middle of some other operation I didn't intend, often making a mess, at which point I have to stop and fumble around with undos and redos until I am reasonably sure I have undone the damage.
To avoid that unpleasantness, I've gotten in the habit of pausing for one second after every time I type O. But this slows me down and prevents me from being the vim speed demon I would otherwise be.
What causes this? Is there a fix or workaround?
set noesckeys; this has the side effect of disabling the arrow keys (and perhaps some other keys?) in Insert mode though, so it may not be for everyone. â Martin Tournoij May 13 '15 at 15:25:nnoremap ^[O O, where^[is entered by pressing<C-v><Esc>(may also show up as<1b>). â Martin Tournoij May 13 '15 at 22:30