sponsor Vim development Vim logo Vim Book Ad

gpg.vim : it seems that this inspired another much better script: gnupg.vim

 script karma  Rating 25/28, Downloaded by 693  Comments, bugs, improvements  Vim wiki

created by
Guang Liu
 
script type
utility
 
description
As I know little about vim scripts, this was just a thought which proved convenient for me. But I just noticed there's a new plugin called 'gnupg.vim' after this which is much better. Please download that instead. I tried to delete this from the server.

This little plugin helps to edit "gpg" encrypted files. I use this because it's more convenient when you do not have GUI encrypt tools.

How to use:
just name the file with .gpg suffix, e.g. "something.gpg" and
vi -u ~/.vim/gpg.vim something.gpg
 
install details
1. download and setup "gpg" ( see docs for gpg )
2. setup your key for gpg, get the user name for the key, e.g. "user@domain"
2. create two little scripts called "dgpg" and "egpg" and put them in your PATH.
   in "dgpg":
    
   #!/bin/sh
   gpg -d 2>/dev/null

   in "egpg":
   #!/bin/sh
   gpg -e -r user@domain
   # where user@domain is the user specified when you create your gpg key

3. drop gpg.vim in your ~/.vim/ directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
gpg.vim 0.1 2003-05-29 6.0 Guang Liu Initial upload
ip used for rating: 18.119.118.99

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github