aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/date/plugin
diff options
context:
space:
mode:
authorTeddy Wing2021-10-01 21:49:26 +0200
committerTeddy Wing2021-10-06 20:33:36 +0200
commit1e97570f54c86a9238baf4bb4eb3a82e6f3874a9 (patch)
tree22088d65cde22d93bbe146f594894d5945695edc /bundle/date/plugin
parent25bffbb768f361cf6daa40a55ee78b314557e27c (diff)
downloaddotvim-1e97570f54c86a9238baf4bb4eb3a82e6f3874a9.tar.bz2
Create 'date' plugin
Add a command to insert the current date after point. Saves me a bit of typing, as well as effort remembering the current date.
Diffstat (limited to 'bundle/date/plugin')
-rw-r--r--bundle/date/plugin/date.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundle/date/plugin/date.vim b/bundle/date/plugin/date.vim
new file mode 100644
index 0000000..a03ce22
--- /dev/null
+++ b/bundle/date/plugin/date.vim
@@ -0,0 +1,6 @@
+if exists('g:loaded_date')
+ finish
+endif
+let g:loaded_date = 1
+
+command! -nargs=? DateInsert call date#Insert(<q-args>)