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:vim, insert, date
~ by princ3 on August 27, 2007.
Posted in linux, vim
iab ddate =strftime(”%A(%d) %B(%m) %Y”)
iab ttime =strftime(”%H:%M”)
use:
ddate [press enter or space]
greetings
More possible
http://vim.wikia.com/wiki/How_do_I_add_a_current_time_string_inside_Vim%3F
[...] http://princ3.wordpress.com/2007/08/27/insert-current-date-in-vim/ [...]
Unproductivity » Insert date and time into Vim or Textmate documents said this on September 22, 2007 at 10:10 am |