From 9e2e49205587a957524f26dd6325e4ed236eca7b Mon Sep 17 00:00:00 2001 From: Andrew Browne Date: Sun, 25 Oct 2015 21:10:51 +1000 Subject: [PATCH 1/3] Exit gracefully if too old to support this plugin --- plugin/indent_guides.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/indent_guides.vim b/plugin/indent_guides.vim index 7fbc41e..c888240 100644 --- a/plugin/indent_guides.vim +++ b/plugin/indent_guides.vim @@ -1,6 +1,11 @@ " Author: Nate Kane " Homepage: http://github.com/nathanaelkane/vim-indent-guides +" Do not load if if vim is too old +if (v:version == 701 && ! exists('*matchadd')) || (v:version < 701) + finish +endif + if exists('g:loaded_indent_guides') || &cp finish endif From fef32d7481c547d5c72f2be574f569bb3c720bb6 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Mon, 26 Oct 2015 19:10:24 +1000 Subject: [PATCH 2/3] Wording --- plugin/indent_guides.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/indent_guides.vim b/plugin/indent_guides.vim index c888240..1c4c2da 100644 --- a/plugin/indent_guides.vim +++ b/plugin/indent_guides.vim @@ -1,7 +1,7 @@ " Author: Nate Kane " Homepage: http://github.com/nathanaelkane/vim-indent-guides -" Do not load if if vim is too old +" Do not load if vim is too old if (v:version == 701 && ! exists('*matchadd')) || (v:version < 701) finish endif From 1b108fc9c9f8e2eac0e4bf9df951995d30aa87f0 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Mon, 26 Oct 2015 19:10:29 +1000 Subject: [PATCH 3/3] Whitespace --- plugin/indent_guides.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/indent_guides.vim b/plugin/indent_guides.vim index 1c4c2da..8a6dee3 100644 --- a/plugin/indent_guides.vim +++ b/plugin/indent_guides.vim @@ -2,7 +2,7 @@ " Homepage: http://github.com/nathanaelkane/vim-indent-guides " Do not load if vim is too old -if (v:version == 701 && ! exists('*matchadd')) || (v:version < 701) +if (v:version == 701 && !exists('*matchadd')) || (v:version < 701) finish endif