Can I integrate some form of symbol completion to Vim? Dedicated TeX editors like TeXMaker provide a list of symbols for completion (for example, \al
shows a list with \alpha
, \la
shows \lambda
and \langle
).
Please note that TeX has a rather large number of symbols, so suggestions involving manual mapping of \al
to \alpha
would be useless.
Related plugins I have:
- SuperTab with
let g:SuperTabDefaultCompletionType="context"
andset omnifunc=syntaxcomplete#Complete
- LaTeX-Box
If it matters, I use XeLaTeX for compiling.
Related:
latex-suite
.vimtex
is a relatively new plugin and is based on LaTeX-Box, so it should feel somewhat familiar.snippets
for complicated expansions, but for simple ones, you can look at:h vimtex-imaps
fo a description of the feature implemented in vimtex.