Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 936 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 936 Bytes

tex_autoclose.vim

Provides mappings to automatically close environments in TeX/LaTeX.

Pressing \c in normal mode (or <C-\>c in insert mode) will cause the last open environment to be closed. (If a fold is started on the \begin{env} line, then it will be automatically closed on the \end{env} line.)

Also pressing <C-\>} in insert mode when the cursor is at the end of a \begin{environment} will automatically generate a \end{environment}. It will leave the cursor at the end of the \begin{environment} (in insert mode), so that the user can enter arguments [if any].

Small and functional. Suggestions welcome.

Install details

Drop the script into your $VIMRUNTIME/ftplugin directory for global instalation. Put it in ~/.vim/ftplugin for local installation.

Links