If I'm in insert mode in Vim, and I press Control + W, it waits a moment, then deletes the previous word. If I start typing immediately after pressing it, it deletes the previous word instantly and replaces it with what I type.

In either case, the previous word is deleted and whatever I type next replaces it. So why the pause? Is there something else I can do at that point?

Update

This is on MacVim 7.3 (55) on OSX Snow Leopard. I just logged into a server with a vanilla config and tried it, and the deletion is instant. So maybe it's something with my config?

link|improve this question

62% accept rate
I can't reproduce the delay. What version of Vim and what operating system? – Mikel Mar 2 '11 at 20:22
@Mikel - updated question. – Nathan Long Mar 2 '11 at 20:33
feedback

1 Answer

up vote 4 down vote accepted

You might have a mapping that starts with Ctrl-W and that's why Vim waits for a while to see if you want to use it, check with :verbose imap <C-W>

link|improve this answer
Yep! This was in my .vimrc, which I intially got from a friend and have been tweaking since: imap <C-w><C-w> <esc><C-w><C-w> So he specifically mapped hitting "control + w" twice in insert mode to moving to the next window. – Nathan Long Mar 2 '11 at 21:43
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.