This commit is contained in:
Yggdroot
2013-03-07 18:46:35 +08:00
parent 2cb4c7d586
commit f14d7e609b

View File

@@ -102,7 +102,7 @@ endfunction
"{{{1 function! <SID>Setup() "{{{1 function! <SID>Setup()
function! <SID>Setup() function! <SID>Setup()
if !exists("b:indentLine_set") if !getbufvar("%","&hidden") || !exists("b:indentLine_set")
let b:indentLine_set = 1 let b:indentLine_set = 1
if index(g:indentLine_fileTypeExclude, &ft) != -1 if index(g:indentLine_fileTypeExclude, &ft) != -1
@@ -128,8 +128,8 @@ function! <SID>Setup()
endfunction endfunction
"{{{1 commands "{{{1 commands
exec 'autocmd BufWinEnter * call <SID>Setup()' autocmd BufWinEnter * call <SID>Setup()
exec 'autocmd BufRead,ColorScheme * call <SID>InitColor()' autocmd BufRead,ColorScheme * call <SID>InitColor()
command! -nargs=? IndentLinesReset call <SID>ResetWidth(<f-args>) command! -nargs=? IndentLinesReset call <SID>ResetWidth(<f-args>)
command! IndentLinesToggle call <SID>IndentLinesToggle() command! IndentLinesToggle call <SID>IndentLinesToggle()