gnupg 1933

gnupg is a Vim plugin for transparent editing of gpg encrypted files.
gnupg is a Vim plugin for transparent editing of gpg encrypted files.

This script implements transparent editing of gpg symmetric and asymmetric encrypted files. The filename must have a ".gpg", ".pgp" or ".asc" suffix. When opening such a file the content is decrypted, when opening a new file the script will ask for the recipients of the encrypted file. The file content will be encrypted to all recipients or the script asks for a passphrase before it is written. The script turns off viminfo and swapfile to increase security.

Commands:

:GPGEditRecipients

Opens a scratch buffer to change the list of recipients. Recipients that
are unknown (not in your public keyring) are highlighted and have
a prepended "!". Closing the buffer makes the changes permanent.

:GPGViewRecipients
Prints the list of recipients.

:GPGEditOptions
Opens a scratch buffer to change the options for encryption (symmetric,asymmetric, signing). Closing the buffer makes the changes permanent. WARNING: There is no check of the entered options, so you need to know what you are doing.

:GPGViewOptions
Prints the list of options.

Variables:

g:GPGUseAgent
If set to 0 a possible available gpg-agent won't be used. Defaults to 1.

g:GPGPreferSymmetric
If set to 1 symmetric encryption is preferred for new files. Defaults to 0.

g:GPGPreferArmor
If set to 1 armored data is preferred for new files. Defaults to 0.

Requirements:

Vim

INSTALLATION:

Copy the gnupg.vim file to the $HOME/.vim/plugin directory. Refer to ':help add-plugin', ':help add-global-plugin' and ':help runtimepath' for more details about Vim plugins.

What's New in This Release:

changed parsin to work with gpg2 correctly
save/restore view of saved window
fix a bug when encoding and fileencoding is different
restructured autocommand triggers
added a debug command and debug messages

last updated on:
May 30th, 2008, 17:59 GMT
price:
FREE!
homepage:
www.vim.org
license type:
GPL (GNU General Public License) 
developed by:
Markus Braun
category:
ROOT \ Text Editing&Processing \ Vim Plugins
gnupg
Download Button

In a hurry? Add it to your Download Basket!

user rating 11

3.5/5
 

0/5

Rate it!

Add your review!

SUBMIT