Vim: add filetype-specific mappings for GnuPG encrypted files
The GnuPG plugin provides seamless editing of encrypted files (.gpg, .pgp and .asc). The plugin includes the following commands, which will throw errors if the file is not one of the aforementioned extensions:
:GPGEditRecipients
Opens a scratch buffer to change the list of recipients. Recipients that
are unknown (not in your public key) are highlighted and have
a prepended "!". Closing the buffer makes the changes permanent.
:GPGViewRecipients
Prints the list of recipients.
:GPGEditOptions
Opens a scratch buffer to change the options for encryption (symmetric,
asymmetric, signing). Closing the buffer makes the changes permanent.
WARNING: There is no check of the entered options, so you need to know
what you are doing.
:GPGViewOptions
Prints the list of options.
Therefore, filetype-specific mappings are needed.