Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

In accordance with #179 #199

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion after/plugin/indentLine.vim
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,11 @@ augroup indentLine
\ call <SID>Setup() |
\ endif

autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
autocmd BufRead,BufNewFile,ColorScheme * call <SID>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 <SID>Setup()
autocmd Syntax * doautocmd indentLine BufUnload | call <SID>Setup()
augroup END

"{{{1 commands
Expand Down