I was having trouble using the GnuPG plugin for vim under Cygwin. The GnuPG plugin allows seamlessly integrated decryption, editing, and re-encryption of GPG-encrypted content within vim. However, on my Windows 7 box, it just showed gibberish. Attempting to edit my encrypted password file resulted in a rather vague error message:
$ vim Documents/passwords.gpg "Documents/passwords.gpg" [Incomplete last line][converted] 7 lines, 2547 characters Press ENTER or type command to continue
Pressing enter simply resulted in gibberish, likely the raw data of the encrypted file.
The solution was to turn on vim’s filetype plugin processing:
:filetype plugin on
To make this setting persistent, add it to your ~/.vimrc file.