scy on Nostr: How cool is btw? Suppose your file contains the string "Tue 30 Jan 2024". Place the ...
How cool is
https://github.com/tpope/vim-speeddating btw?
Suppose your file contains the string "Tue 30 Jan 2024".
Place the cursor on the T, then hit Ctrl-A. The text becomes "Wed 31 Jan 2024". Hit Ctrl-A again, it's now "Thu 01 Feb 2024".
Place the cursor on the 4, hit Ctrl-X. The text reads "Wed 01 Feb 2023".
If you hit d followed by Ctrl-X, the date below the cursor becomes the current date, respecting the format it had before.
Works not only with dates, but also times, and combined date/time.
#Vim
Published at
2024-01-30 19:57:35Event JSON
{
"id": "dac8ab2b43f79c8f1ba966a181af8de67d37ccb977fc9f072f41a188e2012c7a",
"pubkey": "6c0bcc61825addd9ced4c4d2f2d8e9d38d9e3087ac060bff05383c5acce1a33a",
"created_at": 1706641055,
"kind": 1,
"tags": [
[
"t",
"vim"
],
[
"proxy",
"https://chaos.social/users/scy/statuses/111846428219904391",
"activitypub"
]
],
"content": "How cool is https://github.com/tpope/vim-speeddating btw?\n\nSuppose your file contains the string \"Tue 30 Jan 2024\".\n\nPlace the cursor on the T, then hit Ctrl-A. The text becomes \"Wed 31 Jan 2024\". Hit Ctrl-A again, it's now \"Thu 01 Feb 2024\".\n\nPlace the cursor on the 4, hit Ctrl-X. The text reads \"Wed 01 Feb 2023\".\n\nIf you hit d followed by Ctrl-X, the date below the cursor becomes the current date, respecting the format it had before.\n\nWorks not only with dates, but also times, and combined date/time.\n\n#Vim",
"sig": "551ee582daf80671b7b4a8792bc05c8f2e759168a925057c45bdacea83d5aa75414b0cc796e1cd535822716ceb5aa658f1ec3e8d77e0ee71a69b0517f9331fb7"
}