aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-09-25 20:56:23 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-09-25 20:57:28 +1200
commitd5467127aea302bef74a21c9aca9cf10fa4efaae (patch)
tree5c7b558d5a2a80639c59d779885d2673a2b3f364
parentAdd VERSION (diff)
downloadvim-scratch-buffer-d5467127aea302bef74a21c9aca9cf10fa4efaae.tar.gz
vim-scratch-buffer-d5467127aea302bef74a21c9aca9cf10fa4efaae.zip
Correct load guard
-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..caad3cb 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
finish
endif
+let loaded_scratch_buffer = 1
" Command to open scratch buffer
command! -bar -count=0 -nargs=* ScratchBuffer