mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-20 19:01:13 +08:00
fix some issue
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user