Editor backup files

Craig B Agricola craig at theagricolas.org
Wed May 21 18:14:21 UTC 2025


I use redact_pass.vim, which is in the git repository (at
contrib/vim/redact_pass.vim).  It handles disabling the swap files when using
pass, and gives you a handy message that you can check for to be sure that it
has done so.  It disables writing to the viminfo, as well, so if you delete
something, the deleted text doesn't get written to a register that then gets
written to your viminfo file.  I suspect it's better than rolling your own
solution, because it's had multiple eyes over it.

 -Craig

On Sun, Mar 09, 2025 at 12:30:47PM +0000, Conrad Hughes wrote:
> My editor (vim) creates backup files automatically, which in the case of
> 'pass edit' is something of a security leak ??? it'll fill your editor
> backup dir with files like
> 
>   %dev%shm%pass.xyzxyzxyzxyzx%xyzxyz-passentry.txt~
> 
> One way around this is to configure the editor not to create backups
> when editing in /dev/shm.  Have people taken any other approaches?
> 
> Conrad


More information about the Password-Store mailing list