aboutsummaryrefslogtreecommitdiff
path: root/plugin/scratch_buffer.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-07-24 12:19:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-07-24 12:19:47 +1200
commit8838fdab0d005189e0f562e4689ad7e05e8f9997 (patch)
tree6e012ba2b36d3b841ba2d3283e5863ed14be1995 /plugin/scratch_buffer.vim
parentCommit plugin as it stands (diff)
downloadvim-scratch-buffer-8838fdab0d005189e0f562e4689ad7e05e8f9997.tar.gz
vim-scratch-buffer-8838fdab0d005189e0f562e4689ad7e05e8f9997.zip
Add spacing and commentary to code
Diffstat (limited to 'plugin/scratch_buffer.vim')
-rw-r--r--plugin/scratch_buffer.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugin/scratch_buffer.vim b/plugin/scratch_buffer.vim
index c209c8b..fe7a872 100644
--- a/plugin/scratch_buffer.vim
+++ b/plugin/scratch_buffer.vim
@@ -1,2 +1,13 @@
+"
+" scratch_buffer.vim: User command to open a scratch buffer.
+"
+" Author: Tom Ryder <tom@sanctum.geek.nz>
+" License: Same as Vim itself
+"
+if exists('loaded_alternate_filetypes') || &compatible
+ finish
+endif
+
+" Command to open scratch buffer
command! -bar -count=0 -nargs=* ScratchBuffer
\ call scratch_buffer#(<q-mods>, <q-count>, <f-args>)