Skip to content

Commit 9e2e492

Browse files
committed
Exit gracefully if too old to support this plugin
1 parent 4895e86 commit 9e2e492

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin/indent_guides.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
" Author: Nate Kane <nathanaelkane AT gmail DOT com>
22
" Homepage: http://github.com/nathanaelkane/vim-indent-guides
33

4+
" Do not load if if vim is too old
5+
if (v:version == 701 && ! exists('*matchadd')) || (v:version < 701)
6+
finish
7+
endif
8+
49
if exists('g:loaded_indent_guides') || &cp
510
finish
611
endif

0 commit comments

Comments
 (0)