From d5467127aea302bef74a21c9aca9cf10fa4efaae Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 25 Sep 2019 20:56:23 +1200 Subject: Correct load guard --- plugin/scratch_buffer.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 " 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 -- cgit v1.2.3 From 14ead9437241916483eac2bbedb5018bbd8ff958 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 25 Sep 2019 21:09:00 +1200 Subject: Add version threshold --- plugin/scratch_buffer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/scratch_buffer.vim b/plugin/scratch_buffer.vim index caad3cb..e2a7aa6 100644 --- a/plugin/scratch_buffer.vim +++ b/plugin/scratch_buffer.vim @@ -4,7 +4,7 @@ " Author: Tom Ryder " License: Same as Vim itself " -if exists('loaded_scratch_buffer') || &compatible +if exists('loaded_scratch_buffer') || &compatible || v:version < 700 finish endif let loaded_scratch_buffer = 1 -- cgit v1.2.3 From 282a4cefc14e5af31ab06fe4298a08dd7e8f8824 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 25 Sep 2019 20:58:25 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 -- cgit v1.2.3