DEV Community

loading...

Discussion on: Find, convert and replace dates with Vim substitutions

Collapse
jkreeftmeijer profile image
Jeff Kreeftmeijer Author

Hey Ben, ๐Ÿ‘‹

Thanks for your kind words!

Thereโ€™s some more about the differences between BSD and GNU date in the original. Youโ€™re right, though; using external dependencies makes this less portable.

I used the nested substitution to show another crazy thing you can do within a substitution. Piping the result from the date command through tr is probably easier to remember, so I'll add a quick note about that. Thanks!