Great article, as usual!
For the replacement, also possible to use Vim functions strftime() and strptime(), so you don't need to shell out to an external date binary..
strftime()
strptime()
date
:%s/\v\d{4}-\d{2}-\d{2}/\=strftime("%B %d, %Y", strptime("%Y-%m-%d", submatch(0)))/g
Filipe, it seems that my neovim does not have the function "strptime"
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article, as usual!
For the replacement, also possible to use Vim functions
strftime()
andstrptime()
, so you don't need to shell out to an externaldate
binary..Filipe, it seems that my neovim does not have the function "strptime"