diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 5635052..298faef 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -165,7 +165,7 @@ endfunction "{{{1 commands autocmd BufWinEnter * call Setup() autocmd BufRead,BufNewFile,ColorScheme * call InitColor() -autocmd Syntax * if exists("b:indentLine_set") | call InitColor() | call SetIndentLine() | endif +autocmd Syntax * if exists("b:indentLine_set") && exists("b:indentLine_enabled") && b:indentLine_enabled | call InitColor() | call SetIndentLine() | endif command! -nargs=? IndentLinesReset call ResetWidth() command! IndentLinesToggle call IndentLinesToggle()