From ed6b052bd10570c105935f06832496804a535467 Mon Sep 17 00:00:00 2001 From: Thaer Date: Sat, 4 Feb 2017 11:09:55 -0800 Subject: [PATCH] Match BOL before syntax association to avoid external overwrites. --- plugin/workspace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/workspace.vim b/plugin/workspace.vim index 7f3d2a7..ea702ae 100644 --- a/plugin/workspace.vim +++ b/plugin/workspace.vim @@ -206,8 +206,8 @@ function! s:SetIndentGuideHighlights(user_initiated) endif execute "highlight Conceal ctermfg=238 ctermbg=NONE guifg=Grey27 guibg=NONE" execute "highlight SpecialKey ctermfg=238 ctermbg=NONE guifg=Grey27 guibg=NONE" + execute printf('syntax match IndentGuideDraw /^\zs\ \ze\ \{%i}/ containedin=ALL conceal cchar=┆', &l:shiftwidth - 1) execute 'syntax match IndentGuideSpaces /^\ \+/ containedin=ALL contains=IndentGuideDraw keepend' - execute printf('syntax match IndentGuideDraw /^\zs\ \ze\ \{%i}/ contained conceal cchar=┆', &l:shiftwidth - 1) execute printf('syntax match IndentGuideDraw /\ \{%i}\zs \ze/ contained conceal cchar=┆', &l:shiftwidth - 1) endif endfunction