Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

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>

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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