From ce872bd004a78ce184dd5448ef5a3882dd5e384d Mon Sep 17 00:00:00 2001 From: Yggdroot Date: Thu, 22 Sep 2016 23:09:28 +0800 Subject: [PATCH] fix an issue that indentLine disappear when the file is changed outside --- after/plugin/indentLine.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 81711ba..96ff389 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -199,7 +199,8 @@ augroup indentLine \ call Setup() | endif autocmd BufRead,BufNewFile,ColorScheme,Syntax * call InitColor() autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0 - autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautoall indentLine BufUnload + autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload + autocmd FileChangedShellPost * doautocmd indentLine BufUnload | call Setup() augroup END "{{{1 commands