aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-09-25 00:19:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-09-25 00:19:06 +1200
commitfa0b0289b80fadbe9af87ca2faa3b5da4512d3fb (patch)
tree1bfe4171c47175528352dc11d61eba80272a81fd
parentFirst version from tejr dotfiles v9.12.0 (diff)
parentBump VERSION (diff)
downloadvim-put-date-master.tar.gz
vim-put-date-master.zip
Merge branch 'release/v0.2.0'HEADv0.2.0master
* release/v0.2.0: Add missing boilerplate comment to plugin file
-rw-r--r--VERSION2
-rw-r--r--plugin/put_date.vim9
2 files changed, 10 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index 6e8bf73..0ea3a94 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.0
+0.2.0
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>)