diff --git a/autoload/vimtex/index.vim b/autoload/vimtex/index.vim index d580968..467deaa 100644 --- a/autoload/vimtex/index.vim +++ b/autoload/vimtex/index.vim @@ -190,7 +190,7 @@ endfunction " }}}1 function! s:print_entries() dict " {{{1 for entry in self.entries - call append('$', printf(' %s', entry.title)) + call append('$', printf('%s', entry.title)) endfor endfunction diff --git a/autoload/vimtex/labels.vim b/autoload/vimtex/labels.vim index 0dfef3d..a961765 100644 --- a/autoload/vimtex/labels.vim +++ b/autoload/vimtex/labels.vim @@ -74,12 +74,12 @@ endfunction " }}}1 function! s:index_syntax() dict " {{{1 syntax match VimtexLabelsHelp /^.*: .*/ - syntax match VimtexLabelsLine /^ .*$/ contains=@Tex - syntax match VimtexLabelsChap /^ chap:.*$/ contains=@Tex - syntax match VimtexLabelsEq /^ eq:.*$/ contains=@Tex - syntax match VimtexLabelsFig /^ fig:.*$/ contains=@Tex - syntax match VimtexLabelsSec /^ sec:.*$/ contains=@Tex - syntax match VimtexLabelsTab /^ tab:.*$/ contains=@Tex + syntax match VimtexLabelsLine /^.*$/ contains=@Tex + syntax match VimtexLabelsChap /^chap:.*$/ contains=@Tex + syntax match VimtexLabelsEq /^eq:.*$/ contains=@Tex + syntax match VimtexLabelsFig /^fig:.*$/ contains=@Tex + syntax match VimtexLabelsSec /^sec:.*$/ contains=@Tex + syntax match VimtexLabelsTab /^tab:.*$/ contains=@Tex highlight link VimtexLabelsHelp helpVim highlight link VimtexLabelsLine Todo