diff --git a/README.md b/README.md index 33c5f0c..3bd4d2c 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ See the [VIM Reference Manual](http://vimdoc.sourceforge.net/htmldoc/version7.ht **Disable by default** ``` -let g:indentLine_enabled = 0 +let g:indentLine_loaded = 1 ``` ### Commands diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 0ff965e..3a6e9e4 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -204,10 +204,11 @@ augroup indentLine \ call Setup() | \ endif - autocmd BufRead,BufNewFile,ColorScheme,Syntax * call InitColor() + autocmd BufRead,BufNewFile,ColorScheme * call InitColor() autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0 autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload autocmd FileChangedShellPost * doautocmd indentLine BufUnload | call Setup() + autocmd Syntax * doautocmd indentLine BufUnload | call Setup() augroup END "{{{1 commands