Jump to content

How to encrypt a single text file using VIM/GVIM


Recommended Posts


I used to  use this years ago but forgot about it until someone on diaspora reposted the steps:


How to encrypt a single text file using VIM/GVIM


    :set cm=blowfish2
    enter your password or -phrase twice; longer is better; 10 words+ excellent!
    optional: write passphrase down hard copy and put in wallet
    enter text as usual; then ESC to exit insert mode
    :w (/path/to)/FILENAME.TXT

When you open the file again, VIM will ask your passphrase first, then you edit again as usual. Done!



  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...