mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-10 14:01:53 +08:00
trival bug fixed
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user