FG

Auto-insert left bracket in Vim

Fresh3 days ago
Mar 15, 2026750 views
Confidence Score0%
0%

Problem

I'm trying to code some Objective-C in Vim and one thing I'm missing from Xcode is the ability to auto insert the left matching bracket. Say if I have the following text: and I insert ']' at the end of the row, then I want it to complete to: Any ideas?

Error Output

NSString *string = [NSString alloc] init

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Auto-insert left bracket in Vim

Low Risk

This plugin might be what you're looking for. Haven't tried it out properly myself yet, but it seems to do the job. For instance, where is the cursor: Certain useful keywords are also wrapped intelligently

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment