Encrypt a file with Vim
When you open a encrypted file with vim and enter the wrong password, the file will still be open but encrypted and all the text will be gibberish! It is very important that you don't write the file. Quit it right away.
When you have opened the file issue:
Then set the password you want:
We want to use the blowfish encryption algorithm: