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.

Consider the following .vimrc configuration:

inoremap ' ''<left>
function! someFunc()
     inoremap ' '

Now, after someFunc() is run, pressing ' still waits the timeout time before moving the cursor. Can the original inoremap be cancelled rather than overwritten to remove the wait?

Thanks.

share|improve this question
1  
I think you want to use iunmap '. –  Thor Sep 5 '12 at 13:45
    
Thanks, Thor! Mention that as an answer so that I could accept it. –  dotancohen Sep 5 '12 at 15:04

1 Answer 1

up vote 4 down vote accepted

Redefining won't work, unmap instead:

iunmap '
share|improve this answer

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.