I want to emphasize again that the ability to change
environments is a standard part of the emacs auctex
package. It really should be included in vim-latex.
I included it in auctex.vim with the following additions.
They save a lot of time in my own typing:
1. Changing from "eqnarray" or "eqnarray*" to "equation" or "\[\]"
automatically deletes "&" and "\nonumber" and "\\".
2. Changing from "eqnarray" to "eqnarray*"
automatically deletes "\nonumber".
I bound the environment-changing commands to <C-F1> through
<C-F5>.
-----------------
In emacs auctex, and also my package, typing "..." results
in "\dots". This is absolutely logical, and it would be a
shame to leave it out.
-----------------
You might want to consider "polymorphic macros". I
implemented the following:
1. In insert mode, <Alt-L> puts \left...\right in front of
the bracket to the right of the cursor, and the one before
the cursor. If the line is blank, <Alt-L> puts in "\label{}".
If the letter before the cursor is "q", then <Alt-L> results
in "\lefteqn{".
2. In insert mode, if the space before the cursor is blank,
<Alt-C> inserts "\cite{}". Otherwise, it capitalizes the
character before the cursor and encloses it in "\mathcal{}"
3. On a blank line, in insert mode, <F5> asks the user for
the name of the environment, and creates the environment.
But one can also create the environment by typing its name,
and then typing <F5>.
I don't know if these kind of macros are too complicated for
most users, but I definitely prefer them.
Best wishes,
Carl Mueller
|