sponsor Vim development Vim logo Vim Book Ad

redact_pass.vim : Set options to edit pass(1) files securely

 script karma  Rating 24/8, Downloaded by 606  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
 
script type
utility
 
description
This plugin switches off the 'viminfo', 'backup', 'writebackup', 'swapfile', and 'undofile' options globally when editing a password in pass(1).

This is to prevent anyone being able to extract passwords from your Vim cache files in the event of a compromise.

You should test this after installation to ensure you see this message printed whenever you `pass edit`:

    Editing password file--disabled leaky options!

https://sanctum.geek.nz/cgit/vim-redact-pass.git
 
install details
Drop plugin/redact_pass.vim in your ~/.vim/plugin directory. Add doc/redact_pass.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.
 

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-redact-pass-2.0.0.tar.gz 2.0.0 2018-06-26 6.0 Tom Ryder Refactored to use autocmd patterns in place of clunky manual functions
ip used for rating: 3.15.147.53

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