Add current date and time in vim

Last few days I was quite busy. So this time very quick tip 🙂

Add the following to the ~/.vimrc file

imap dt :r! dateA

And now whenever you type dt in the insert mode in vi, date will be inserted.

This site uses Akismet to reduce spam. Learn how your comment data is processed.