From e17ed074a030f2bdd8664de059f08306533323c7 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Tue, 7 Dec 2010 22:37:12 +1000 Subject: [PATCH] Changed the way option defaults are defined --- plugin/indent_guides.vim | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/plugin/indent_guides.vim b/plugin/indent_guides.vim index f375d4b..72e2f7b 100644 --- a/plugin/indent_guides.vim +++ b/plugin/indent_guides.vim @@ -19,8 +19,21 @@ command! IndentGuidesEnable call s:IndentGuidesEnable() command! IndentGuidesDisable call s:IndentGuidesDisable() " Default options -let g:indent_guides_indent_levels = 50 -let g:indent_guides_debug = 0 +let g:indent_guides_indent_levels = + \ exists('g:indent_guides_indent_levels') ? + \ g:indent_guides_indent_levels : 50 + +let g:indent_guides_debug = + \ exists('g:indent_guides_debug') ? + \ g:indent_guides_debug : 0 + +let g:indent_guides_auto_colors = + \ exists('g:indent_guides_auto_colors') ? + \ g:indent_guides_auto_colors : 1 + +let g:indent_guides_auto_colors_change_percent = + \ exists('g:indent_guides_auto_colors_change_percent') ? + \ g:indent_guides_auto_colors_change_percent : 0.20 " Default mapping nmap ig :IndentGuidesToggle