mirror of
https://github.com/Yggdroot/indentLine.git
synced 2026-08-12 02:42:40 +08:00
trival bug fixed
This commit is contained in:
+3
-3
@@ -5,7 +5,7 @@
|
|||||||
"
|
"
|
||||||
" Description: To show the indent line
|
" Description: To show the indent line
|
||||||
|
|
||||||
if exists("g:loaded_indentLine")
|
if !has("conceal") || exists("g:loaded_indentLine")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_indentLine = 1
|
let g:loaded_indentLine = 1
|
||||||
@@ -13,7 +13,7 @@ let g:loaded_indentLine = 1
|
|||||||
if (has("gui_running"))
|
if (has("gui_running"))
|
||||||
hi Conceal guifg=grey guibg=bg
|
hi Conceal guifg=grey guibg=bg
|
||||||
else
|
else
|
||||||
hi Conceal ctermfg=8 ctermbg=bg
|
hi Conceal ctermfg=8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set conceallevel=2
|
set conceallevel=2
|
||||||
@@ -21,7 +21,7 @@ set concealcursor=inc
|
|||||||
|
|
||||||
function! SetIndentLine()
|
function! SetIndentLine()
|
||||||
for i in range(&shiftwidth+1, 100, &shiftwidth)
|
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
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user