]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - vim/vim/ftplugin/tex/tex.xpt.vim
a7173c199bc213712c220274dc51fc83fb15cb4a
[config/dotfiles.git] / vim / vim / ftplugin / tex / tex.xpt.vim
1 " vim: ft=xpt
2
3 " XPTemplate template file.
4 "
5 " Language:     LaTeX
6 " Maintainer:   Simon Ruderich <simon@ruderich.org>
7 " License:      GPL v3+
8
9 " Copyright (C) 2012  Simon Ruderich
10 "
11 " This file is free software: you can redistribute it and/or modify
12 " it under the terms of the GNU General Public License as published by
13 " the Free Software Foundation, either version 3 of the License, or
14 " (at your option) any later version.
15 "
16 " This file is distributed in the hope that it will be useful,
17 " but WITHOUT ANY WARRANTY; without even the implied warranty of
18 " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 " GNU General Public License for more details.
20 "
21 " You should have received a copy of the GNU General Public License
22 " along with this file.  If not, see <http://www.gnu.org/licenses/>.
23
24
25 " Prevent errors if XPTemplate is not installed.
26 if !exists('g:XPT#ver')
27     finish
28 endif
29
30 XPTemplate priority=personal
31
32
33 " PACKAGES
34
35 XPT usepackage " \usepackage{..}
36 \usepackage{`package^}
37
38
39 " SECTIONS
40
41 XPT s synonym=section " \section{..}
42 \section`*^{`title^}
43
44 XPT ss " \subsection{..}
45 \subsection`*^{`title^}
46
47 XPT sss " \subsubsection{..}
48 \subsubsection`*^{`title^}
49
50
51 " ENVIRONMENTS
52
53 XPT itemize " \begin{itemize} .. \end{itemize}
54 \begin{itemize}
55 \item `cursor^
56 \end{itemize}
57
58 XPT enumerate " \begin{enumerate} .. \end{enumerate}
59 \begin{enumerate}
60 \item `cursor^
61 \end{enumerate}
62
63 XPT description " \begin{description} .. \end{description}
64 \begin{description}
65 \item`[`text?`]^ `cursor^
66 \end{description}
67
68 XPT i "\item ..
69 \item`[`text?`]^ `cursor^
70
71 XPT align " \begin{align} .. \end{align}
72 \begin{align`*^}
73 `cursor^
74 \end{align`*^}
75
76 XPT listing " \begin{lstlisting} .. \end{lstlisting}
77 \begin{lstlisting}`[`attributes?`]^
78 `cursor^
79 \end{lstlisting}
80
81
82 " BEAMER
83
84 XPT frame " \begin{frame} .. \end{frame}
85 \begin{frame}{`title^}
86 `cursor^
87 \end{frame}
88
89 XPT block " \begin{block} .. \end{block}
90 \begin{block}{`title^}
91 `cursor^
92 \end{block}
93
94 XPT exampleblock " \begin{exampleblock} .. \end{exampleblock}
95 \begin{exampleblock}{`title^}
96 `cursor^
97 \end{exampleblock}