This commit is contained in:
Yggdroot
2014-04-17 18:19:38 +08:00
parent 57bf4eeae3
commit cc70416066

View File

@@ -1,7 +1,4 @@
" Script Name: indentLine.vim
" Version: 1.0.5
" Last Change: April 1, 2013
" Author: Yggdroot <archofortune@gmail.com>
"
" Description: To show the indention levels with thin vertical lines
@@ -128,14 +125,19 @@ function! s:Setup()
endif
endfor
if ! exists("b:indentLine_bufNr")
let b:indentLine_bufNr = bufnr('%')
let g:indentLine_bufNr = bufnr('%')
elseif g:indentLine_bufNr != bufnr('%') && &hidden
let g:indentLine_bufNr = bufnr('%')
return
endif
if ! exists("g:indentLine_noConcealCursor")
setlocal concealcursor=inc
endif
setlocal conceallevel=2
if !&hidden || !exists("b:indentLine_set")
let b:indentLine_set = 1
if &filetype is# ""
call s:InitColor()
endif
@@ -147,7 +149,6 @@ function! s:Setup()
if b:indentLine_enabled
call s:SetIndentLine()
endif
endif
endfunction
"{{{1 augroup indentLine
@@ -155,7 +156,6 @@ augroup indentLine
autocmd!
autocmd BufWinEnter * call <SID>Setup()
autocmd BufRead,BufNewFile,ColorScheme * call <SID>InitColor()
autocmd Syntax * call <SID>InitColor() | call <SID>SetIndentLine()
augroup END
"{{{1 commands