jamessan / vim-gnupg

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

Already encrypted file "File is not encrypted, all GPG functions disabled!" #109

Closed PipeItToDevNull closed 4 years ago

PipeItToDevNull commented 4 years ago

Opening a pre-encrypted file in vim on windows installed via scoop

echo "testificate" > test.txt
gpg -s .\test.txt 
vim .\test.txt.gpg -V

File is not encrypted, all GPG functions disabled!

I am able to open a blank file as .gpg or .asc, encrypt using the vim-gnupg prompts and continue to open that file just fine but any existing encrypted files cannot be opened.

penguin359 commented 4 years ago

It looks like you tried to create a signed file, not encrypted, and opened it with vim. Try using gpg -e if you want an encrypted file.

PipeItToDevNull commented 4 years ago

You are correct, I am an idiot