-
-
Notifications
You must be signed in to change notification settings - Fork 522
Closed
Description
The suggested method here https://github.com/gopasspw/gopass/blob/master/docs/setup.md#securing-your-editor, which is adding
au BufNewFile,BufRead /dev/shm/gopass.* setlocal noswapfile nobackup noundofile
to the vimrc, is not enough. The viminfo-file still gets written with content of the decrypted file. What should be used instead is
autocmd BufNewFile,BufRead /dev/shm/gopass* setlocal noswapfile nobackup noundofile viminfo=""
for vim and
autocmd BufNewFile,BufRead /dev/shm/gopass* setlocal noswapfile nobackup noundofile shada=""
for neovim.
So the path is wrong (the dot at the end) and it is still writing viminfo/shada.
I do not know if the MacOS path is correct, but the viminfo/shada-stuff is of course similar.
sstiglitz