gnupg - Plugin for transparent editing of gpg encrypted files. : vim online
Keywords: Vim, Vi IMproved, text editor, home, documentation, tips, scripts, news

gnupg : Plugin for transparent editing of gpg encrypted files.
script karma | Rating 476/180, Downloaded by 3307
created by
Markus Braun
script type
utility
description
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.
install details
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.
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
--- | --- | --- | --- | --- | ---
gnupg.vim | 1605 | 2007-04-05 | 6.0 | Markus Braun | - new plugin options to set preferences for symmetric/asymmetric and armor/binary files - fix for use with gvim. !! plugin works only in gvim if gpg-agent is available !!
gnupg.vim | 1472 | 2006-12-15 | 6.0 | Markus Braun | - support for symmetric encrypted files. - detection of various encryption options. - possibility to change gpg options using new commands GPGEditOptions and GPGViewOptions commands. - support editing files with '.gpg', '.pgp' and '.asc' suffixes (tanks to Richard Bronosky). - detection of unencrypted files. - support for windows systems (thanks to Erik Remmelzwaal).
gnupg.vim | 1.27 | 2003-06-24 | 6.0 | Markus Braun | updated documentation, that gnupg.vim only works for public/private-key encrypted files.
gnupg.vim | 1.26 | 2003-05-30 | 6.0 | Markus Braun | Initial upload

| 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 vim@vim.org after searching the archive. Help Bram help Uganda. |  |