cmd, security

Adding password protection on a file with vim

$ vim -x filename

The -x option uses encryption when writing the file. It will ask for a key:

Enter encryption key: ******
Enter same key again: ******

From then on your filename will be encrypted and accessed using the password. The -x option will no longer be necessary when editing the file.

2 Comments

  • On 07.10.09 vosi said:

    Didn’t know that one. Nice!

  • On 03.30.10 nme said:

    you can encrypt already existing file using :set key=password

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*Required Fields