Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
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
up vote 4 down vote accepted

Redefining won't work, unmap instead:

iunmap '
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .