aboutsummaryrefslogtreecommitdiff
path: root/plugin/put_date.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/put_date.vim')
-rw-r--r--plugin/put_date.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/put_date.vim b/plugin/put_date.vim
new file mode 100644
index 0000000..7848e95
--- /dev/null
+++ b/plugin/put_date.vim
@@ -0,0 +1,6 @@
+if exists('loaded_put_date') || &compatible || !exists('*strftime')
+ finish
+endif
+let loaded_put_date = 1
+command! -bang -bar -nargs=* -range PutDate
+ \ call put_date#(<q-line1>, <q-bang> ==# '!', <q-args>)