Insert Current Date In Vim

Posted on August 27, 2007 in Vim

If you write a ToDo list or a schedule in vim, you probably want to insert the current date or the date after one week from now. Here is how to do it:

:r !date

or to add one week to the current Date:

:r !date -d "today 1 week"

enjoy :)