Changed the way option defaults are defined

This commit is contained in:
Nate Kane 2010-12-07 22:37:12 +10:00
parent 6bd76247a4
commit e17ed074a0

View File

@ -19,8 +19,21 @@ command! IndentGuidesEnable call s:IndentGuidesEnable()
command! IndentGuidesDisable call s:IndentGuidesDisable() command! IndentGuidesDisable call s:IndentGuidesDisable()
" Default options " Default options
let g:indent_guides_indent_levels = 50 let g:indent_guides_indent_levels =
let g:indent_guides_debug = 0 \ 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 " Default mapping
nmap <Leader>ig :IndentGuidesToggle<CR> nmap <Leader>ig :IndentGuidesToggle<CR>