sponsor Vim development Vim logo Vim Book Ad

vim-eyaml-gpg : Plugin to fold gpg encrypted blocks managed by eyaml.

 script karma  Rating 6/3, Downloaded by 446  Comments, bugs, improvements  Vim wiki

created by
Chris Allison
 
script type
ftplugin
 
description
Development is here https://github.com/ccdale/vim-eyaml-gpg

Usage

when opening a yaml format file that has encrypted blocks managed by eyaml this plugin attempts to detect them and creates manual folds of them. You can open the fold by putting the cursor on the fold and typing za. The same key sequence will close the fold again.

Decrypting

You can decrypt the encrypted block with <localleader>d (localleader is '' on my system). The decrypted value is placed onto the message tree and should appear on the vim command line. Should it have scrolled off, or not show you the 'Press Enter to continue' message, you can view it with :messages.

The decryption uses a tempory buffer, completely in memory, so nothing is written to disk. It is destroyed immediately after decrypting. The registers used to pass encrypted and decrypted strings around are reset to the values they had before decryption started, so there is no chance of the data being written out to any .viminfo files.
versions

Tested on ubuntu 16.04 with:

    GNU coreutils base64 8.25
    GnuPG 1.4.20

ubuntu 18.04 with:

    GNU coreutils base64 8.28
    GnuPg 2.2.4
 
install details
use pathogen (https://github.com/tpope/vim-pathogen) to manage your plugins.

git clone this repo into `$HOME/.vim/bundle/

restart vim
 

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
vim-eyaml-gpg-1.0.0.tar.gz 1.0.0 2018-08-26 7.4 Chris Allison Initial upload
ip used for rating: 3.141.244.201

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