]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
ftplugin/tex/tex.xpt.vim: Add more snippets.
authorSimon Ruderich <simon@ruderich.org>
Sun, 18 Nov 2012 14:45:17 +0000 (15:45 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 18 Nov 2012 14:45:17 +0000 (15:45 +0100)
vim/ftplugin/tex/tex.xpt.vim

index 2b3b5ba03279542ab825f20191fea3704a04db07..3fac2e15fc78f069bbe8d65cd9bc6f070b21285a 100644 (file)
@@ -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}