5
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:
NSString *string = [NSString alloc] init
and I insert ']' at the end of the row, then I want it to complete to:
NSString *string = [[NSString alloc] init]
Any ideas?
That's a pretty neat solution. I'll accept that answer. Please note that it's capital S to surround it seems. – Ciryon – 2012-02-02T09:35:57.783
It depends on the version: in mine
s
andS
are interchangeable for character-wise selection but different for line-wise selection. – romainl – 2012-02-02T09:55:02.043