]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - vim/vim/ftplugin/tex/tex.xpt.vim
vim: xptemplate: remove unnecessary license text from templates
[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
10 " Prevent errors if XPTemplate is not installed.
11 if !exists('g:XPT#ver')
12     finish
13 endif
14
15 XPTemplate priority=personal
16
17
18 " PACKAGES
19
20 XPT usepackage " \usepackage{..}
21 \usepackage{`package^}
22
23
24 " SECTIONS
25
26 XPT s synonym=section " \section{..}
27 \section`*^{`title^}
28
29 XPT ss " \subsection{..}
30 \subsection`*^{`title^}
31
32 XPT sss " \subsubsection{..}
33 \subsubsection`*^{`title^}
34
35
36 " ENVIRONMENTS
37
38 XPT itemize " \begin{itemize} .. \end{itemize}
39 \begin{itemize}
40 \item `cursor^
41 \end{itemize}
42
43 XPT enumerate " \begin{enumerate} .. \end{enumerate}
44 \begin{enumerate}
45 \item `cursor^
46 \end{enumerate}
47
48 XPT description " \begin{description} .. \end{description}
49 \begin{description}
50 \item`[`text?`]^ `cursor^
51 \end{description}
52
53 XPT i "\item ..
54 \item`[`text?`]^ `cursor^
55
56 XPT align " \begin{align} .. \end{align}
57 \begin{align`*^}
58 `cursor^
59 \end{align`*^}
60
61 XPT listing " \begin{lstlisting} .. \end{lstlisting}
62 \begin{lstlisting}`[`attributes?`]^
63 `cursor^
64 \end{lstlisting}
65
66
67 " BEAMER
68
69 XPT frame " \begin{frame} .. \end{frame}
70 \begin{frame}{`title^}
71 `cursor^
72 \end{frame}
73
74 XPT block " \begin{block} .. \end{block}
75 \begin{block}{`title^}
76 `cursor^
77 \end{block}
78
79 XPT exampleblock " \begin{exampleblock} .. \end{exampleblock}
80 \begin{exampleblock}{`title^}
81 `cursor^
82 \end{exampleblock}