Insert Current Date 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:

:r !date

or to add one week to the current date:

:r !date -d “today 1 week”

enjoy :)

technorati tags:, ,

~ by princ3 on .

3 Responses to “Insert Current Date In Vim”

  1. iab ddate =strftime(”%A(%d) %B(%m) %Y”)
    iab ttime =strftime(”%H:%M”)

    use:
    ddate [press enter or space]

    greetings

  2. More possible
    http://vim.wikia.com/wiki/How_do_I_add_a_current_time_string_inside_Vim%3F

  3. [...] http://princ3.wordpress.com/2007/08/27/insert-current-date-in-vim/ [...]

Leave a Reply