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.
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.