maciakl / tex_autoclose.vim

TeX / LaTeX ftplugin to automatically close environments

Home Page:http://www.vim.org/scripts/script.php?script_id=920

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a mirror of http://www.vim.org/scripts/script.php?script_id=920

Provides mappings to automatically close environments.

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 \close{env} line.)

Also pressing "<C-\>}" in insert mode when the cursor is at the end of a "\begin{environment}" will automatically generate a "\close{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.

About

TeX / LaTeX ftplugin to automatically close environments

http://www.vim.org/scripts/script.php?script_id=920


Languages

Language:Vim Script 100.0%