diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-09-25 20:56:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-09-25 20:57:28 +1200 |
commit | d5467127aea302bef74a21c9aca9cf10fa4efaae (patch) | |
tree | 5c7b558d5a2a80639c59d779885d2673a2b3f364 | |
parent | Add VERSION (diff) | |
download | vim-scratch-buffer-d5467127aea302bef74a21c9aca9cf10fa4efaae.tar.gz vim-scratch-buffer-d5467127aea302bef74a21c9aca9cf10fa4efaae.zip |
Correct load guard
-rw-r--r-- | plugin/scratch_buffer.vim | 3 |
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 |