sponsor Vim development Vim logo Vim Book Ad

PairTools : Auto close pairs and tags

 script karma  Rating 30/9, Downloaded by 1284  Comments, bugs, improvements  Vim wiki

created by
Martin Lafreniere
 
script type
utility
 
description
The PairTools plugin can be seen as a "bundle" of tools to handle various
"pair" operations. It also offers a flexible way to set pairs and options per
filetypes. Therefore, it is possible to have pairs and options set for editing
C++ files while also editing XML files with other pairs and options inside the
same window.

The plugin is modular, i.e. related features are grouped inside a module, and
other related features inside others groups. In the current version, there are
three modules: pairclamp.vim, tagwrench.vim and jigsaw.vim.

The PairClamp module works with single characters pairs such as (,). The
TagWrench module works with angle brackets <,> and tags <tagname>. The Jigsaw
module coordinates some key maps between PairClamp and TagWrench, such as when
pressing backspace and calling the right hook function. The pairtools.vim file
defines autocmds, mappings and options to make all the modules work.

See details at: https://github.com/MartinLafreniere/vim-PairTools
 
install details
Use the vimball: vim pairtools.vba followed by :so % and :quit.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
pairtools.vba 1.5.2 2011-05-29 7.0 Martin Lafreniere Added TagWrench support for namespace and to use the hyphen inside a tag name
Fix various minor bugs.
pairtools.vba 1.5.1 2011-05-20 7.0 Martin Lafreniere Fixed case sensitiveness with autoload function call for case sensitive filesystem such as linux ext*.
A few minor bug fixes.
pairtools.vba 1.5 2011-05-18 7.0 Martin Lafreniere Major plugin rework, see accompanying help file.
pairtools.zip 1.0 2011-04-23 7.3 Martin Lafreniere Initial upload
ip used for rating: 44.200.49.193

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github