aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/scratch.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/autoload/scratch.vim')
-rw-r--r--vim/autoload/scratch.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/autoload/scratch.vim b/vim/autoload/scratch.vim
new file mode 100644
index 00000000..bf6566dc
--- /dev/null
+++ b/vim/autoload/scratch.vim
@@ -0,0 +1,11 @@
+function! scratch#(mods, count, ...) abort
+ let command = []
+ call add(command, a:mods)
+ if a:count
+ call add(command, a:count)
+ endif
+ call add(command, 'new')
+ call extend(command, a:000)
+ execute join(command)
+ set buftype=nofile
+endfunction