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

When opening a vim encrypted file, it prompts for the password. But if I get it wrong, vim will show me garbage. How do I tell vim to reopen the file with a new password? Even if I close the buffer and open again, it won't ask the password, and I have to quit vim completely.

(Vim version 7.2 / 2008)

share|improve this question
up vote 2 down vote accepted

From :h encryption:

If want to start reading a file that uses a different key, set the 'key' option to an empty string, so that Vim will prompt for a new one.

share|improve this answer
    
Oh, how did I miss that. Thanks. – Memming Oct 19 '12 at 16:36

You must log in to answer this question.

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