There are several plug-ins can accomplish this task, auto-add a closing bracket when we type: (
, [
or {
.
But then the cursor will be in the middle of paired bracket, when we finish inserting, we need to ESC, li
to continue typing rest of the content.
This is quite frustrating, just autocomplete one character, we need to type 3 additional keys, is there a way to get around this? I still want to keep bracket auto-pairing though.
<Right>
or (most auto-closing plugins let you do that))
or whatever the closing character is.()
,{}
(exact pair without anything in them) that will override the plugin functionality. But as @romainl said, the plugin should do this by default.