sponsor Vim development Vim logo Vim Book Ad

Closing Brackets : A dead-simple Vim plugin to automatically insert closing brackets

 script karma  Rating 0/2, Downloaded by 811  Comments, bugs, improvements  Vim wiki

created by
script type

A dead-simple plugin to automatically insert the closing bracket/brace/parenthesis based on vimtip #630.

This plugin was written because the other solutions interfered with SCIM and were more complex than I needed.

Mappings ('(' can be replaced with '[' or '{'. '|' is the cursor position):
( -> (|)
() -> (|)
(<BS> ->
<C-v>( -> (|
(<Del> -> (|
) (when cursor is before a ')' )-> )|
) -> ))|
<C-v>) -> )|
install details
Copy the plugin file to your plugins folder.

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
vim-closing-brackets.vim 1.0.0 2016-06-01 7.0 tPenguinLTG Initial upload
ip used for rating:

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