From e92517df50a7450ec51f2dbb872f89034e90e6d4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 10 Jun 2018 00:24:34 +1200 Subject: Completely refactor for version 1.0.0 Turn off leaky options globally just after startup if we have only one file to edit and it matches the typical pass(1) path. --- README.markdown | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index 8087640..eeee26b 100644 --- a/README.markdown +++ b/README.markdown @@ -1,17 +1,16 @@ redact\_pass.vim ================ -This plugin switches off the` 'viminfo'`, `'backup'`, `'swapfile'`, and -`'undofile'` options locally for the buffer when editing passwords in the -`pass(1)` password manager, or a comparable tool if `g:redact_pass_pattern` is -set beforehand. +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. -Test this carefully to make sure it works! If it doesn't, it is probably -because you need to set `g:redact_pass_pattern` to fit your system's behaviour, -or the plugin hasn't loaded at all. +You should test this after installed to ensure you see this message is printed +whenever you `pass edit`: + +> Editing password file--disabled leaky options! License ------- -- cgit v1.2.3