Vim plugin for 'auto-closed' parenthesis?

beakr picture beakr · Jan 22, 2012 · Viewed 12.1k times · Source

I've searched near and far, and not found a plugin that can simply auto-close a set of parenthesis like Textmate. For example:

Vim     : (*manually close parens* → )
Textmate: (*Auto closes parens*)

If you can describe a plugin for this, I will be very helpful. Thanks!

Answer

phildobbin picture phildobbin · Mar 24, 2012

I use AutoPairs. You can get it here:

https://github.com/jiangmiao/auto-pairs.git

If you read the docs, it has a lot of options which cover most eventualities.