@@ -45,19 +45,25 @@ let g:indent_guides_color_hex_guibg_pattern = 'guibg=\zs' . g:indent_guides_col
45
45
let g: indent_guides_color_name_guibg_pattern = " guibg='\\ ?\\ zs[0-9A-Za-z ]\\ +\\ ze'\\ ?"
46
46
47
47
" Configurable global variables
48
- call s: InitVariable (' g:indent_guides_indent_levels' , 30 )
49
- call s: InitVariable (' g:indent_guides_auto_colors' , 1 )
50
- call s: InitVariable (' g:indent_guides_color_change_percent' , 10 ) " ie. 10%
51
- call s: InitVariable (' g:indent_guides_guide_size' , 0 )
52
- call s: InitVariable (' g:indent_guides_start_level' , 1 )
53
- call s: InitVariable (' g:indent_guides_debug' , 0 )
48
+ call s: InitVariable (' g:indent_guides_indent_levels' , 30 )
49
+ call s: InitVariable (' g:indent_guides_auto_colors' , 1 )
50
+ call s: InitVariable (' g:indent_guides_color_change_percent' , 10 ) " ie. 10%
51
+ call s: InitVariable (' g:indent_guides_guide_size' , 0 )
52
+ call s: InitVariable (' g:indent_guides_start_level' , 1 )
53
+ call s: InitVariable (' g:indent_guides_enable_on_vim_startup' , 0 )
54
+ call s: InitVariable (' g:indent_guides_debug' , 0 )
54
55
55
56
" Default mapping
56
57
nmap <Leader> ig :IndentGuidesToggle<CR>
57
58
58
59
" Auto commands
59
60
augroup indent_guides
60
61
autocmd !
62
+
63
+ if g: indent_guides_enable_on_vim_startup
64
+ autocmd VimEnter * :IndentGuidesEnable
65
+ endif
66
+
61
67
autocmd BufEnter ,WinEnter * call indent_guides#process_autocmds ()
62
68
augroup END
63
69
0 commit comments