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