diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 2843079..aa88567 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -157,11 +157,6 @@ function! s:Setup() call s:InitColor() endif - call s:EnableFeature() -endfunction - -"{{{1 function! s:EnableFeature() -function! s:EnableFeature() abort if g:indentLine_enabled call s:IndentLinesEnable() endif @@ -204,8 +199,7 @@ endfunction augroup indentLine autocmd! autocmd BufWinEnter * call Setup() - autocmd Syntax * unlet! b:indentLine_enabled | call EnableFeature() - autocmd BufRead,BufNewFile,ColorScheme * call InitColor() + autocmd BufRead,BufNewFile,ColorScheme,Syntax * call InitColor() autocmd BufUnload * unlet! b:indentLine_enabled augroup END