aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-31 01:15:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-31 01:20:33 +1200
commit598090797c2cb3a4fe945d2eacd3eca42a0cfe5d (patch)
tree96daceb67ab452bdb98cbc63d78112454c20c370 /plugin
downloadvim-put-date-598090797c2cb3a4fe945d2eacd3eca42a0cfe5d.tar.gz
vim-put-date-598090797c2cb3a4fe945d2eacd3eca42a0cfe5d.zip
First version from tejr dotfiles v9.12.0v0.1.0
Diffstat (limited to 'plugin')
-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>)