aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-09-25 00:14:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-09-25 00:14:39 +1200
commit3e901d65cb77aa2da9db0575dbe1f855895cc54a (patch)
tree806635980cc6faea5ca23826bb47ace289c2e519
parentFirst version from tejr dotfiles v9.12.0 (diff)
downloadvim-put-date-develop.tar.gz
vim-put-date-develop.zip
Add missing boilerplate comment to plugin filedevelop
-rw-r--r--plugin/put_date.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/put_date.vim b/plugin/put_date.vim
index 7848e95..b13083f 100644
--- a/plugin/put_date.vim
+++ b/plugin/put_date.vim
@@ -1,6 +1,15 @@
+"
+" put_date.vim: Convenience wrapper around `strftime()` to insert the current
+" date and time in the buffer, with optional format and UTC switching.
+"
+" Author: Tom Ryder <tom@sanctum.geek.nz>
+" License: Same as Vim itself
+"
if exists('loaded_put_date') || &compatible || !exists('*strftime')
finish
endif
let loaded_put_date = 1
+
+" User command to put the date into the buffer at the current line
command! -bang -bar -nargs=* -range PutDate
\ call put_date#(<q-line1>, <q-bang> ==# '!', <q-args>)