vim editor encrypted password fix
Hi,
I saved a file using :X with the password. When i want to access the file with out password, i don't know how to disable it. I tried, :set key= but it didn't work . Can you provide me the right instructions to disable it ? |
It worked for me.
Run "vi <file>" for whatever you encrypted file name is. Input your key and hit return when prompted for the key. After the file opens type ":set key=" before hitting any other keys then hit return. This removes the encryption key. Type ":wq!" then hit return. This writes the file and quits. The resulting file should no longer have an encryption key. If that isn't working you might want to see if you have a .vimrc (or other .*rc) file in your home directory that is overriding standard setups. |
Thanks it works.
|
Glad I could help. Please go to thread tools and marked this as Solved. It helps others with similar problems in future more quickly locate resolutions in web searches.
|
All times are GMT -5. The time now is 10:12 AM. |