replace multiple patterns by a single one

This commit is contained in:
tek
2014-01-25 06:35:38 +01:00
committed by tek
parent f0d6cf942c
commit 54f0f22c73

View File

@@ -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