mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-06 20:24:28 +08:00
Merge pull request #71 from justinmk/master
ignore 'help' buffers. fixes #70
This commit is contained in:
@@ -100,9 +100,9 @@ function! s:Setup()
|
|||||||
if ! exists("g:indentLine_noConcealCursor")
|
if ! exists("g:indentLine_noConcealCursor")
|
||||||
setlocal concealcursor=inc
|
setlocal concealcursor=inc
|
||||||
endif
|
endif
|
||||||
setlocal conceallevel=1
|
setlocal conceallevel=2
|
||||||
|
|
||||||
if !getbufvar("%","&hidden") || !exists("b:indentLine_set")
|
if !&hidden || !exists("b:indentLine_set")
|
||||||
let b:indentLine_set = 1
|
let b:indentLine_set = 1
|
||||||
|
|
||||||
if &filetype is# ""
|
if &filetype is# ""
|
||||||
@@ -138,7 +138,7 @@ augroup indentLine
|
|||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWinEnter * call <SID>Setup()
|
autocmd BufWinEnter * call <SID>Setup()
|
||||||
autocmd BufRead,BufNewFile,ColorScheme * call <SID>InitColor()
|
autocmd BufRead,BufNewFile,ColorScheme * call <SID>InitColor()
|
||||||
autocmd Syntax * if exists("b:indentLine_set") && exists("b:indentLine_enabled") && b:indentLine_enabled | call <SID>InitColor() | call <SID>SetIndentLine() | endif
|
autocmd Syntax * if exists("b:indentLine_set") && get(b:, "indentLine_enabled", 0) | call <SID>InitColor() | call <SID>SetIndentLine() | endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
"{{{1 commands
|
"{{{1 commands
|
||||||
|
|||||||
Reference in New Issue
Block a user