diff --git a/doc/vimtex.txt b/doc/vimtex.txt index bf3b691..adfd138 100644 --- a/doc/vimtex.txt +++ b/doc/vimtex.txt @@ -1375,10 +1375,10 @@ Autocomplete~ *vimtex-complete-auto* Vim does not provide automatic completion by itself, but there exist at least -two good plugins that provide this: |neocomplete| and |youcompleteme|. -Moreover, there is |VimCompletesMe| that overrides to trigger different -built-in completions, such as the omni-completion by vimtex, depending on the -context. See below for descriptions on how to setup these with |vimtex|. +two good plugins that provide this: |neocomplete| and |youcompleteme|. Moreover, +there is |VimCompletesMe| that overrides to trigger different built-in +completions, such as the omni-completion by vimtex, depending on the context. +See below for descriptions on how to setup these with |vimtex|. neocomplete~ *vimtex-complete-neocomplete* @@ -1425,23 +1425,23 @@ To enable automatic completion with |youcompleteme|, use the following options: \ ] < VimCompletesMe~ - *vimtex-complete-vcm* -A plugin that overrides to trigger the built-in completion that is -most suitable to the current contex. The plugin is available here: + *vimtex-complete-vcm* +A plugin that maps to trigger the built-in completion that is most +suitable to the current contex. The plugin is available here: https://github.com/ajh17/VimCompletesMe. -The following options may be used to enable automatic completion for LaTeX -documents with |VimCompletesMe| and |vimtex|s omni completion function: > +The following options may be used to enable completion with the trigger +for LaTeX documents with |VimCompletesMe| and |vimtex|s omni completion function: > -augroup VimCompletesMeTex + augroup VimCompletesMeTex autocmd! - autocmd FileType tex let b:vcm_omni_pattern = + autocmd FileType tex let b:vcm_omni_pattern = \ '\v\\%(' \ . '\a*%(ref|cite)\a*%(\s*\[[^]]*\])?\s*\{[^{}]*' \ . '|includegraphics%(\s*\[[^]]*\])?\s*\{[^{}]*' \ . '|%(include%(only)?|input)\s*\{[^{}]*' \ . ')$' -augroup END + augroup END < ============================================================================== FOLDING *vimtex-folding*