From 8722b7d6e1e479b0d7f4644c9cd13b4a4c05c8a7 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Sat, 11 Dec 2010 22:59:10 +1000 Subject: [PATCH] Added a check to make sure the plugin isn't loaded more than once --- plugin/indent_guides.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/indent_guides.vim b/plugin/indent_guides.vim index b4085b5..d15402c 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 +if exists('g:loaded_indent_guides') || &cp + finish +endif +let g:loaded_indent_guides = 1 + function! s:IndentGuidesToggle() call indent_guides#toggle() endfunction