jamessan / vim-gnupg

This script implements transparent editing of gpg encrypted files.
http://www.vim.org/scripts/script.php?script_id=3645
728 stars 73 forks source link

Explicitly name gpg2 as command for Fedora based systems? #54

Closed istathar closed 8 years ago

istathar commented 8 years ago

It would seem in Fedora 23 we need to use gpg2 as the command; the gnupg package is still providing /usr/bin/gpg. Is that configurable | hackable in the gnupg.vim script?

jamessan commented 8 years ago

It's configurable via the g:GPGExecutable variable. You can add

let g:GPGExecutable = 'gpg2 --trust-model always'

to your vimrc to use gpg2 instead.

istathar commented 8 years ago

Thanks! (I tried set, didn't realize let was the right command, hacked that line in script instead. This is much better).

avinash commented 7 years ago

Hi. I also had the same issue with Fedora 25 and adding

let g:GPGExecutable = 'gpg2 --trust-model always'

in ~/.vimrc solved the issue. I would love to understand why gpg does not work anymore with the plugin given that it works very well on the command line itself...