From d319377b1890b64314310c48b0aa64bfd8685496 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 18 Nov 2012 15:45:17 +0100 Subject: [PATCH] ftplugin/tex/tex.xpt.vim: Add more snippets. --- vim/ftplugin/tex/tex.xpt.vim | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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} -- 2.43.2