In search of: vim plugin for age (Actually good encryption)

28 views
Skip to first unread message

Tobias Klausmann

unread,
Nov 21, 2024, 5:57:01 AM11/21/24
to vim...@googlegroups.com
Hi!

So I have been using a vim plugin that uses GnuPG for file encryption
for years. It works well enough, but I'd prefer to use something more
modern, like https://github.com/FiloSottile/age.

The "Integrations" page at https://github.com/FiloSottile/awesome-age
lists a neovim plugin for it, but I can't find a vim plugin (the name
"age" does _not_ help with finding one, either...)

Anybody aware of such a plugin for (plain) vim?

TIA,
Tobias

Igbanam Ogbuluijah

unread,
Nov 21, 2024, 6:13:49 AM11/21/24
to vim...@googlegroups.com
Hi Tobias,

The nvim plugin for Age is barely six weeks old — no pun intended. It's basically a wrapper. So if you have Age setup, you can open the file and run the command to decrypt it from command

:e some.encrypted.age
:r! age --decrypt %
[ . . . do stuff in buffer . . .]
:r! age --encrypt %
:w

p.s: I know this may not be the most optimal way, but it gets you started


Igbanam


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/eae164ce-83a5-48aa-b0e4-517c7628f47d%40skade.local.

Tobias Klausmann

unread,
Nov 21, 2024, 6:19:35 AM11/21/24
to vim...@googlegroups.com
Hi!

On Thu, 21 Nov 2024, Igbanam Ogbuluijah wrote:
> The nvim plugin for Age is barely six weeks old — no pun intended. It's
> basically a wrapper. So if you have Age setup, you can open the file and
> run the command to decrypt it from command
>
> :e some.encrypted.age
> :r! age --decrypt %
> [ . . . do stuff in buffer . . .]
> :r! age --encrypt %
> :w
>
> *p.s: I know this may not be the most optimal way, but it gets you started*

Thank you!

One thing of note (also for the benefit of other readers): there a few
more steps one would take (that the gpg plugin does), e.g. making sure
no unencrypted undo/redo list is saved. Disabling the swapfile is one of
those things. To ensure this is consistent, the gpg plugin basically
only works for new files if they are named foo.txt.gpg.

Best,
Tobias
Reply all
Reply to author
Forward
0 new messages