Auto timestamp diary entry

77 views
Skip to first unread message

harleypig

unread,
Aug 17, 2011, 2:05:47 PM8/17/11
to vim...@googlegroups.com
I'd like to have the diary entry (\w\w) automatically timestamped.

Is there something I'm missing in the docs that does this?

I'm looking in autoload/vimwiki/diary.vim to see if I can add this ability somewhere.  Am I in the right spot or is there a better way/place to add this?

Stu

unread,
Aug 27, 2011, 1:34:12 PM8/27/11
to vim...@googlegroups.com

If by timestamped you mean you'd like the time to be written in the file, I would recommend using the snipmate plugin.  For example, in my ~/.vim/snippets/vimwiki.snippets file, I have a date snippet that expands the full date & time using:  `strftime("%F")`

On the other hand, if you want the filename itself to be timestamped, that would take some more work.  I would recommend submitting an issue on the vimwiki site.

- S.
Reply all
Reply to author
Forward
0 new messages