Editor backup files
Amir Yalon
quoiceehoh-20180826 at yxejamir.net
Fri May 23 13:53:54 UTC 2025
There is a Vim/Neovim plugin in contrib that is worth being aware of:
https://git.zx2c4.com/password-store/tree/contrib/vim/redact_pass.vim
This plugin switches off not only the 'backup' option, but also 'viminfo', 'swapfile', 'undofile' and others; see its accompanying txt file. It is also available in Debian and derivatives as vim-redact-pass.
Cheers,
Amir
On Sun, 9 Mar 2025, at 14:30, 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