Skip to content

gi1242/vim-tex-autoclose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Vim plugin to automatically close environments in TeX/LaTeX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published