Skip to content

vim-scripts/vrackets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published