LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vim editor encrypted password fix (https://www.linuxquestions.org/questions/linux-newbie-8/vim-editor-encrypted-password-fix-4175423743/)

skp 08-24-2012 01:27 AM

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 ?

MensaWater 08-24-2012 12:25 PM

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.

skp 08-28-2012 04:47 AM

Thanks it works.

MensaWater 08-28-2012 09:28 AM

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.