From 53ec95d6981537576490c701d1c8f511f8ffe505 Mon Sep 17 00:00:00 2001 From: Yggdroot Date: Fri, 15 Jan 2016 22:46:12 +0800 Subject: [PATCH] Revert "Fix indendLine doesn't work with 'syntax' option change" --- after/plugin/indentLine.vim | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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