Update indentLine.vim

Disable  WinEnter * call <SID>Setup() which causes very low performance on scrolling (after user has switched between windows many times)
This commit is contained in:
Alexander Shamshurin
2017-10-19 20:23:56 +03:00
committed by GitHub
parent a97b6d12ae
commit 808a393f53

View File

@@ -336,7 +336,6 @@ augroup indentLine
if g:indentLine_newVersion
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
autocmd BufWinEnter * call <SID>IndentLinesDisable() | call <SID>LeadingSpaceDisable() | call <SID>Setup()
autocmd WinEnter * call <SID>Setup()
autocmd FileType * call <SID>Disable()
else
autocmd BufWinEnter * call <SID>Setup()