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