sponsor Vim development Vim logo Vim Book Ad

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

 script karma  Rating 6/4, Downloaded by 364  Comments, bugs, improvements  Vim wiki

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

Features:

- 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: 216.73.216.107

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github