aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/put_date.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/plugin/put_date.vim')
-rw-r--r--vim/plugin/put_date.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/vim/plugin/put_date.vim b/vim/plugin/put_date.vim
index 486171a3..e54d6054 100644
--- a/vim/plugin/put_date.vim
+++ b/vim/plugin/put_date.vim
@@ -2,6 +2,5 @@ if exists('loaded_put_date')
finish
endif
let loaded_put_date = 1
-let s:rfc_2822 = '%a, %d %b %Y %T %z'
-command! -bar -range PutDate
- \ <line1>put =strftime(s:rfc_2822)
+command! -bang -bar -nargs=* -range PutDate
+ \ call put_date#(<q-line1>, <q-bang>, <q-args>)