From 439348543c9ffe2c5c4469a6e8f005f67bf73cc1 Mon Sep 17 00:00:00 2001 From: Yggdroot Date: Fri, 20 Oct 2017 15:38:15 +0800 Subject: [PATCH] fix an issue that no indentLine when split window --- after/plugin/indentLine.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 3849206..443abf1 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -335,6 +335,9 @@ augroup indentLine autocmd! if g:indentLine_newVersion autocmd BufRead,BufNewFile,ColorScheme,Syntax * call InitColor() + if exists("##WinNew") + autocmd WinNew * call Setup() + endif autocmd BufWinEnter * call IndentLinesDisable() | call LeadingSpaceDisable() | call Setup() autocmd FileType * call Disable() else