On Wed, Nov 08, 2017 at 10:50:45AM +0100, Sander Smeenk via Gnupg-users wrote: > Quoting Ryan Beethe (r...@splintermail.com): > > > Well... it happens that when I copy your script to my archlinux > > machine, everything works fine. > > Are you sure your key wasn't already unlocked in the gpg-agent?
Yes, I reset my gpg-agent (killall -1 gpg-agent) each time, and was prompted with a pinentry prompt each time. > > Personally, I use a plugin (https://github.com/jamessan/vim-gnupg) and > > I have never had problems. Then in my ~/.vimrc, I just had to set: > > let GPGUsePipes=1 > > let GPGDefaultRecipients=['my.em...@address.com'] > > Wow! Quite some code for decrypting a file! > I'll give it a shot after i learn how to use that beast. Hm... now that I think about it I think the pinentry prompt has been broken in my vim with that plugin for some time (due to improper handling of stderr from the looks of it). It just hasn't bothered me because I almost never use vim until after I have entered the gpg password for something else. So it might be worth a shot but I can't make any promises. Ryan _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users