Added a check to make sure the plugin isn't loaded more than once

This commit is contained in:
Nate Kane 2010-12-11 22:59:10 +10:00
parent 3bcd403bee
commit 8722b7d6e1

View File

@ -1,6 +1,11 @@
" Author: Nate Kane <nathanaelkane AT gmail DOT com> " Author: Nate Kane <nathanaelkane AT gmail DOT com>
" Homepage: http://github.com/nathanaelkane/vim-indent-guides " 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() function! s:IndentGuidesToggle()
call indent_guides#toggle() call indent_guides#toggle()
endfunction endfunction