aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-09-25 21:11:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-09-25 21:11:41 +1200
commitd2340baaf1f79b76aebc6d74ab68fbacb41e3a44 (patch)
tree56888b8209c8ae20d5f35a97a1fe4e844106cd37 /plugin
parentAdd VERSION (diff)
parentBump VERSION (diff)
downloadvim-scratch-buffer-master.tar.gz
vim-scratch-buffer-master.zip
Merge branch 'hotfix/v0.1.1'HEADv0.1.1master
* hotfix/v0.1.1: Add version threshold Correct load guard
Diffstat (limited to 'plugin')
-rw-r--r--plugin/scratch_buffer.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/scratch_buffer.vim b/plugin/scratch_buffer.vim
index fe7a872..e2a7aa6 100644
--- a/plugin/scratch_buffer.vim
+++ b/plugin/scratch_buffer.vim
@@ -4,9 +4,10 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_alternate_filetypes') || &compatible
+if exists('loaded_scratch_buffer') || &compatible || v:version < 700
finish
endif
+let loaded_scratch_buffer = 1
" Command to open scratch buffer
command! -bar -count=0 -nargs=* ScratchBuffer