schwarz / vrackets

automatically close different kinds of brackets

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Vrackets helps you a lot by auto-closing the brackets you type.
For instance, if you type "(", you get:
    (|)
("|" is the cursor.)
You can easily get out of the brackets by typing the closing bracket. If after that you type ")", you get:
    ()|
Lastly, brackets are auto-deleted if they are empty. For instance, if your screen looks like this:
    FooBar(|)
And you press backspace, you get this:
    FooBar|

By default it works for (), [], {}, "" and ''. It also works for ¡! and ¿?, for spanish speakers ;).
You can add more easily if you want (like <>, but I wouldn't recommend it unless for html/xml/etc).

About

automatically close different kinds of brackets

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


Languages

Language:Vim Script 100.0%