mirror of
https://github.com/Yggdroot/indentLine.git
synced 2026-10-25 15:17: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
|
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