Whenever I make an update to the changelog of a Debian package, I have to update the signature with the correct date (well, it's not mandatory, but it's really nice to have).
The signature looks like this:
-- Alexis Wilke <firstname.lastname@example.org> Tue, 26 May 2020 18:00:09 -0800
I'd like to have a command in [g]vim that would replace a signature with my signature and the correct date and time. It's annoying to have to update the date by hand each time, and it is prone to mistakes (i.e.
Jum, etc.) and when Launchpad detects an error it just stops right there.
So having a way to auto-update these signatures would be marvelous.
Do you have such a function or do you know how to write one? In the end, I ideally just have to hit one key and it happens: replacement of the entire line with my signature and the current date in the exact same format.