trival bug fixed

This commit is contained in:
Yggdroot
2012-12-02 22:05:07 +08:00
parent 79bd75896c
commit d0f0274e26

View File

@@ -5,7 +5,7 @@
"
" Description: To show the indent line
if exists("g:loaded_indentLine")
if !has("conceal") || exists("g:loaded_indentLine")
finish
endif
let g:loaded_indentLine = 1
@@ -13,7 +13,7 @@ let g:loaded_indentLine = 1
if (has("gui_running"))
hi Conceal guifg=grey guibg=bg
else
hi Conceal ctermfg=8 ctermbg=bg
hi Conceal ctermfg=8
endif
set conceallevel=2
@@ -21,7 +21,7 @@ set concealcursor=inc
function! SetIndentLine()
for i in range(&shiftwidth+1, 100, &shiftwidth)
exe 'syn match IndentLine /\(^\s\+\)\@<=\%'.i.'v / conceal cchar=|'
exe 'syn match IndentLine /\(^\s\+\)\@<=\%'.i.'v / containedin=ALL conceal cchar=|'
endfor
endfunction