3 comments

[ 2.4 ms ] story [ 14.8 ms ] thread
Have you considered using the jamessan's vim-gnupg plugin¹? It handles all of the grunt work for you, and has been exposed to people for a long time(packaged in Debian and such).

For example, I spotted you don't disable undofile, which is fine if you're not using it. However, you'd have to remember to think it through if you were to enable it elsewhere for some other reason².

¹ https://github.com/jamessan/vim-gnupg

² Best one being that it is awesome :)

Nope, my vim+gpg usage has not been very frequent (although I use them independent of each other A LOT) so I haven't looked into it very much. I will have to get the plugin installed and play around with it. :)
Every single thing about the interactions worry me deeply. Your solution is far shorter and easier for me to understand, jamessan's is very mature but also more complex. I'm impressed you covered all the landmines you had.