aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/wchat
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/wchat')
-rw-r--r--bundle/wchat/plugin/wchat.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundle/wchat/plugin/wchat.vim b/bundle/wchat/plugin/wchat.vim
new file mode 100644
index 0000000..7c17898
--- /dev/null
+++ b/bundle/wchat/plugin/wchat.vim
@@ -0,0 +1,8 @@
+if exists('g:loaded_wchat')
+ finish
+endif
+let g:loaded_wchat = 1
+
+" Write to a temporary file labelled with the current time.
+command! -nargs=0 -bang WChat
+ \ execute ":write\<bang> /tmp/ch" . strftime('%H%M')