3.11 Custom Macros

This functionality available via the TeX-Suite.Macros menu, provides a way of inserting customized macros into the current file via the menu.

When latex-suite starts up, it scans the $VIM/ftplugin/latex-suite/macros/ directory and creates a menu from the files found there. Each file is considered as a single macro. You can place your own macros in this directory, using placeholders if wanted.

When you choose a macro from the menu, the corresponding file is read into the current buffer after the current cursor position. In non-gui mode, you can use the |TMacro| command instead of choosing from the menu. This command takes the macro file name as an argument. When called without arguments (preferred usage), then a list of avaiable macro files is displayed and the user is prompted to choose one of them).

There are some other tools provided in this menu, namely:

{New} Creates a new (unnamed) buffer in the latex-suite/macros/ directory. Use the command :TexMacroNew in non-gui mode.
{Edit} Opens up the corresponding macro file for editing. Use :TexMacroEdit in non-gui mode.
{Delete} Deletes the corresponding macro. Use the prefixed numbers for fast navigation of menus. Use :TexMacroDelete in non-gui mode.
{Redraw} Rescans the macros/ directory and refreshes the macros list.