Insert date and time into Vim or Textmate documents
Submitted by Robert Daeley on Sat, 2007-09-22 16:10.
Thu Sep 20 12:23:36 PDT 2007
Tracked down an easy method to insert the current date (timestamp) into a Vim document:
:r !date
Producing:
Thu Sep 20 12:24:50 PDT 2007
http://princ3.wordpress.com/2007/08/27/insert-current-date-in-vim/
Should probably set up a single key command for that, maybe an F key.
Thu Sep 20 15:36:40 PDT 2007
Within TextMate, short of creating an internal command, the easiest way is to use the Text > Execute Line and Replace with Result and then using the /bin/date utility by simply typing date and then the ctrl-option-r shortcut