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?


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?

  • 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

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>

| 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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