omni.vim : An omni completion plugin for LaTeX
script karma |
Rating 1/1,
Downloaded by 416 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Yangqin Fang |
|
script type |
ftplugin |
|
description |
The best omni completion plugin for writing LaTeX in vim.
Usage:
Example 1. after the command "\input{" , you press Ctrl-x Ctrl-o, you will get a list of *.tex files under the current pwd.
Example 2. In you vim editor, in the insert mode, after the command "\setmainfont{", press Ctrl-x Ctrl-o, you will get a list of fonts
Example 3. after \includepdf{, press Ctrl-x Ctrl-o, you will get a list of *.pdf files.
Example 4. after \includegraphics{, press Ctrl-x Ctrl-o, you will get a list of pictures.
Example 5. after \usepackage{, press Ctrl-x Ctrl-o, you will get a list of packages.
Example 6. after \cite{, press Ctrl-x Ctrl-o, you will get a list of bibitems in you bibtex sourece.
Example 6. after \ref{, press Ctrl-x Ctrl-o, you will get a list of labels in your tex sourece.
It support \anyprefix, \input{...}, \include{...}, \usepackage[...]{...}, \RequirePackage[...]{...},
\setmainfont[...]{...}, \setsanfont{...}, \setmonofont{...}, \setmathfont{...}, \setCJKmainfont[...]{...},
\includepdf[...]{...}, \includepdfmerge[...]{...}, \includegraphics[...]{...},
\cite[...]{...}, \ref{...}, \eqref{...}, \begin{...}, \end{...}.
You can write any of your own prefered commands into ~/.vim/tex/completion/commands.txt, and any of environment names into ~/.vim/tex/completion/environments.txt, etc.
Click the following link to see the pictures for the usage and the installation place.
https://github.com/fangyq09/VimTeXtric |
|
install details |
extract the 7zip file, and copy the "omni.vim" and the "completion" directory to ~/.vim/ftplugin/tex/ on linux system, or put they into $home\vimfiles\ftplugin\tex\ on windows system. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.14.134.62
|