Tex.vim is a project mainly written in Vim Script, it's free.
LaTeX macros in Vim (which emulate operator-pending mode operations)
This is a mirror of http://www.vim.org/scripts/script.php?script_id=93
This file type plugin intended provides some insert mode macros for the LaTeX typesetting language. The nice thing about these mappings is that they emulate the operator pending mode in the insert mode. i.e, the user does NOT have to type the LHS in a hurry or without making mistakes. This facilitates using the macros greatly.
See below for the detailed list of macros provided or just browe the file after downloading it. In brief, this file provides stubs for the most commonly used typsetting commands such as figures, matrices etc. As an example, the commonly used matrix element is provided. Typing
mat
in the insert mode will expand to the following familiar matrix element:
left[ egin{array}{_} end{array} ight]
with the cursor placed where the underscore is shown (note the underscore is
not part of the macro, it just shows the cursor placement)
NOTE:
See the section "ADDING" in the file in order to modify/add new mappings.
A quick way to enter greek symbols is also provided. For example, typing
'q
a few other shortcuts: == expands to &=& (useful while writing eqnarrays) $$ expands to $$ but the cursor is repositioned before the last $ (so you dont have to go back) expands to {} ^ expands to ^{}
end{tabular} label{tab:} caption{} end{table}
end{array} ight
ENUMERATE: ben
ITEMIZE: bit
end{equation}
end{eqnarray}
EPS FIGURE: bfg
EMPTY FIGURE: bfe
TABULAR: btb
end{tabular}
end{tabular} label{tab:} caption{} end{table}
PICTURE: pic
MATRIX: mat
FRAC: frac
DOT: dot
DOUBLE DOT: ddot