File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ endfunction
19
19
" other buffers and windows.
20
20
"
21
21
function ! indent_guides#process_autocmds ()
22
- if indent_guides#getvar (' indent_guides_autocmds_enabled ' )
22
+ if indent_guides#getvar (' indent_guides_enable_on_vim_startup ' )
23
23
call indent_guides#enable ()
24
24
else
25
25
call indent_guides#disable ()
@@ -30,7 +30,7 @@ endfunction
30
30
" Enables the indent guides for the current buffer
31
31
"
32
32
function ! indent_guides#enable ()
33
- let b: indent_guides_autocmds_enabled = 1
33
+ let b: indent_guides_enable_on_vim_startup = 1
34
34
35
35
if &diff || indent_guides#exclude_filetype ()
36
36
call indent_guides#clear_matches ()
@@ -64,7 +64,7 @@ endfunction
64
64
" entering it.
65
65
"
66
66
function ! indent_guides#disable ()
67
- let b: indent_guides_autocmds_enabled = 0
67
+ let b: indent_guides_enable_on_vim_startup = 0
68
68
call indent_guides#clear_matches ()
69
69
endfunction
70
70
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ function s:InitVariable(var, value)
44
44
endfunction
45
45
46
46
" Fixed global variables
47
- let g: indent_guides_autocmds_enabled = 0
48
47
let g: indent_guides_color_hex_pattern = ' #[0-9A-Fa-f]\{6\}'
49
48
let g: indent_guides_color_hex_guibg_pattern = ' guibg=\zs' . g: indent_guides_color_hex_pattern . ' \ze'
50
49
let g: indent_guides_color_name_guibg_pattern = " guibg='\\ ?\\ zs[0-9A-Za-z ]\\ +\\ ze'\\ ?"
@@ -81,11 +80,6 @@ nnoremap <unique><script> <Plug>IndentGuidesDisable :IndentGuidesDisable<CR>
81
80
augroup indent_guides
82
81
autocmd !
83
82
84
- if g: indent_guides_enable_on_vim_startup
85
- let g: indent_guides_autocmds_enabled = 1
86
- autocmd VimEnter * :IndentGuidesEnable
87
- endif
88
-
89
83
autocmd BufEnter ,WinEnter ,FileType * call indent_guides#process_autocmds ()
90
84
91
85
" Trigger BufEnter and process modelines.
You can’t perform that action at this time.
0 commit comments