From 0a667c5ab289087b73bbe176c7b19e5cc44030cf Mon Sep 17 00:00:00 2001 From: tek Date: Sat, 25 Jan 2014 23:34:58 +0100 Subject: [PATCH] remove 'faster' option as the last change removes all performance issues with the default method, the 'faster' workaround is obsolete. --- after/plugin/indentLine.vim | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 39c9aea..20a4d5f 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -23,7 +23,6 @@ let g:indentLine_fileTypeExclude = get(g:,'indentLine_fileTypeExclude',[]) let g:indentLine_bufNameExclude = get(g:,'indentLine_bufNameExclude',[]) let g:indentLine_showFirstIndentLevel = get(g:,'indentLine_showFirstIndentLevel',0) let g:indentLine_maxLines = get(g:,'indentLine_maxLines',3000) -let g:indentLine_faster = get(g:,'indentLine_faster',0) let g:indentLine_setColors = get(g:,'indentLine_setColors',1) "{{{1 function! s:InitColor() @@ -61,17 +60,10 @@ function! s:SetIndentLine() let b:indentLine_enabled = 1 let space = &l:shiftwidth is 0 ? &l:tabstop : &l:shiftwidth - if g:indentLine_faster - execute 'syntax match IndentLineSpace /^\s\+/ contains=IndentLine' - execute 'syntax match IndentLine /^ / containedin=ALL contained conceal cchar=' . g:indentLine_char - execute 'syntax match IndentLine / \{' . (space-1) . '}\zs / containedin=ALL contained conceal cchar=' . g:indentLine_char - execute 'syntax match IndentLine /\t\zs / containedin=ALL contained conceal cchar=' . g:indentLine_char - else - exec 'syn match IndentLineSpace /^\s\+/ containedin=ALL contains=IndentLine' - exec 'syn match IndentLine /^\@! \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char - if g:indentLine_showFirstIndentLevel - execute 'syntax match IndentLine /^ / contained conceal cchar=' . g:indentLine_first_char - endif + execute 'syntax match IndentLineSpace /^\s\+/ containedin=ALL contains=IndentLine' + execute 'syntax match IndentLine /^\@! \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char + if g:indentLine_showFirstIndentLevel + execute 'syntax match IndentLine /^ / contained conceal cchar=' . g:indentLine_first_char endif endfunction @@ -83,9 +75,7 @@ function! s:ResetWidth(...) if exists("b:indentLine_enabled") syntax clear IndentLine - if g:indentLine_faster - syntax clear IndentLineSpace - endif + syntax clear IndentLineSpace endif call s:SetIndentLine() endfunction