From 9e2e49205587a957524f26dd6325e4ed236eca7b Mon Sep 17 00:00:00 2001 From: Andrew Browne Date: Sun, 25 Oct 2015 21:10:51 +1000 Subject: [PATCH] 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