]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - vim/ftplugin/tex/tex.xpt.vim
ftplugin/text: Add, basic snippets for LaTeX.
[config/dotfiles.git] / 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 " SECTIONS
34
35 XPT s synonym=section " \section{..}
36 \section`*^{`title^}
37
38 XPT ss " \subsection{..}
39 \subsection`*^{`title^}
40
41 XPT sss " \subsubsection{..}
42 \subsubsection`*^{`title^}
43
44
45 " ENVIRONMENTS
46
47 XPT itemize " \begin{itemize} .. \end{itemize}
48 \begin{itemize}
49 \item `cursor^
50 \end{itemize}
51
52 XPT enumerate " \begin{enumerate} .. \end{enumerate}
53 \begin{enumerate}
54 \item `cursor^
55 \end{enumerate}
56
57 XPT description " \begin{description} .. \end{description}
58 \begin{description}
59 \item `cursor^
60 \end{description}
61
62 XPT i "\item ..
63 \item`[`text?`]^ `cursor^
64
65 XPT align " \begin{align} .. \end{align}
66 \begin{align`*^}
67 `cursor^
68 \end{align`*^}