X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fftplugin%2Ftex%2Ftex.xpt.vim;h=a7173c199bc213712c220274dc51fc83fb15cb4a;hb=5771ca8df4e87590b3778d881841981437f2bd1e;hp=2b3b5ba03279542ab825f20191fea3704a04db07;hpb=912705af30348cdf3b27188297b1e72f915cdfd9;p=config%2Fdotfiles.git diff --git a/vim/ftplugin/tex/tex.xpt.vim b/vim/ftplugin/tex/tex.xpt.vim index 2b3b5ba..a7173c1 100644 --- a/vim/ftplugin/tex/tex.xpt.vim +++ b/vim/ftplugin/tex/tex.xpt.vim @@ -30,6 +30,12 @@ endif XPTemplate priority=personal +" PACKAGES + +XPT usepackage " \usepackage{..} +\usepackage{`package^} + + " SECTIONS XPT s synonym=section " \section{..} @@ -56,7 +62,7 @@ XPT enumerate " \begin{enumerate} .. \end{enumerate} XPT description " \begin{description} .. \end{description} \begin{description} -\item `cursor^ +\item`[`text?`]^ `cursor^ \end{description} XPT i "\item .. @@ -66,3 +72,26 @@ XPT align " \begin{align} .. \end{align} \begin{align`*^} `cursor^ \end{align`*^} + +XPT listing " \begin{lstlisting} .. \end{lstlisting} +\begin{lstlisting}`[`attributes?`]^ +`cursor^ +\end{lstlisting} + + +" BEAMER + +XPT frame " \begin{frame} .. \end{frame} +\begin{frame}{`title^} +`cursor^ +\end{frame} + +XPT block " \begin{block} .. \end{block} +\begin{block}{`title^} +`cursor^ +\end{block} + +XPT exampleblock " \begin{exampleblock} .. \end{exampleblock} +\begin{exampleblock}{`title^} +`cursor^ +\end{exampleblock}