From: Simon Ruderich Date: Sun, 18 Nov 2012 14:45:17 +0000 (+0100) Subject: ftplugin/tex/tex.xpt.vim: Add more snippets. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=d319377b1890b64314310c48b0aa64bfd8685496;p=config%2Fdotfiles.git ftplugin/tex/tex.xpt.vim: Add more snippets. --- diff --git a/vim/ftplugin/tex/tex.xpt.vim b/vim/ftplugin/tex/tex.xpt.vim index 2b3b5ba..3fac2e1 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{..} @@ -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}