mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-10 22:11:52 +08:00
replace multiple patterns by a single one
This commit is contained in:
@@ -72,9 +72,7 @@ function! s:SetIndentLine()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let pattern = line('$') < g:indentLine_maxLines ? 'v' : 'c'
|
let pattern = line('$') < g:indentLine_maxLines ? 'v' : 'c'
|
||||||
for i in range(space+1, space * g:indentLine_indentLevel + 1, space)
|
exec 'syn match IndentLine /\%(^\)\@! \{'.(space-1).'}\zs / containedin=ALL contained conceal cchar=' . g:indentLine_char
|
||||||
execute 'syntax match IndentLine /\%(^\s\+\)\@<=\%' . i . pattern . ' / containedin=ALL conceal cchar=' . g:indentLine_char
|
|
||||||
endfor
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user