sponsor Vim development Vim logo Vim Book Ad

enwise : Press `enter` to close unbalanced brackets in cursorline.

 script karma  Rating 7/3, Downloaded by 108  Comments, bugs, improvements  Vim wiki

created by
Aaron Taner
script type
A vim plugin that allows you to use Enter key to close brackets.


- Free you mind from closing unbalanced brackets { ( [.
- Respect your tab size and space size when inserting newline.
- Smart enough to escape brackets inside quoted string.
- Behave soundly when you press enter before some trailing characters in cursorline.
- Brackets inside comments like // { /* { */ are normally escaped.

See https://github.com/mapkts/enwise for more information about this plugin.
install details
Install enwise with your favorite plugin manager, e.g vim-plug:

Plug 'mapkts/enwise'

or install manually by unzipping the src listed below to ~/.vim/pack/vendor/start/ (Vim 8+ only).

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
enwise.zip v0.4.1 2021-09-28 7.0 Aaron Taner Enwise now works as expected even when current editing file don't have a recognized filetype.
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.