diff options
Diffstat (limited to 'vim/plugin/put_date.vim')
-rw-r--r-- | vim/plugin/put_date.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/plugin/put_date.vim b/vim/plugin/put_date.vim new file mode 100644 index 00000000..29cf886e --- /dev/null +++ b/vim/plugin/put_date.vim @@ -0,0 +1,11 @@ +if exists('loaded_put_date') + finish +endif +let loaded_put_date = 1 + +" Define a :PutDate command that inserts a line into the buffer with an +" RFC-2822 date string, using the system strftime() implementation. Allow it +" to accept a range which defaults to the current line. +" +command! -range PutDate + \ <line1>put =strftime('%a, %d %b %Y %T %z') |