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