Resposta Original
O plug-in gnupg para o Vim faz isso:
This script implements transparent editing of gpg encrypted files. The filename must have a ".gpg", ".pgp" or ".asc" suffix. When opening such a file the content is decrypted, when opening a new file the script will ask for the recipients of the encrypted file. The file content will be encrypted to all recipients before it is written. The script turns off viminfo and swapfile to increase security.
EDIT # 1
A partir de 2016-07-02, o plug-in gnupg original não está mais sendo atualizado:
Due to the lack of time I'm not able to continue the development of this script. James McCoy took over development. New versions can be found at vimscript #3645.
Existe, no entanto, uma nova versão: