vrackets : automatically close different kinds of brackets
script karma |
Rating 32/14,
Downloaded by 1979 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Gerardo Marset |
|
script type |
utility |
|
description |
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). |
|
install details |
Download it and use :source path/to/the/script/vrackets.vim to try it.
If you want it to load automatically every time you start vim, put it in ~/.vim/plugin, or $HOME\vimfiles\plugin if you use Windows. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.9.175
|