fix some issue

This commit is contained in:
Yggdroot
2016-01-16 22:07:49 +08:00
parent f79f14f938
commit 9cb94e1735

View File

@@ -137,7 +137,7 @@ function! s:Setup()
if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1 if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1
return return
end endif
for name in g:indentLine_bufNameExclude for name in g:indentLine_bufNameExclude
if matchstr(bufname(''), name) is bufname('') if matchstr(bufname(''), name) is bufname('')
@@ -200,7 +200,9 @@ augroup indentLine
autocmd! autocmd!
autocmd BufWinEnter * call <SID>Setup() autocmd BufWinEnter * call <SID>Setup()
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor() autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
autocmd BufUnload * unlet! b:indentLine_enabled autocmd BufUnload * unlet! b:indentLine_enabled | unlet! b:indentLine_leadingSpaceEnabled
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim unlet! b:indentLine_enabled
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim unlet! b:indentLine_leadingSpaceEnabled
augroup END augroup END
"{{{1 commands "{{{1 commands