From 54f0f22c73f9ebb67b9c2068e1f1d55905b4612b Mon Sep 17 00:00:00 2001 From: tek Date: Sat, 25 Jan 2014 06:35:38 +0100 Subject: [PATCH] replace multiple patterns by a single one --- after/plugin/indentLine.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index a11a159..bf64511 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -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