I remember seeing the following functionality somewhere on the web, but I can’t seem to find it. If I have the following code:
void function1()
{
}
and I’d like to move the first opening bracket beside function1()
void function1() {
}
I think there was an easy way to do this in VIM. Right now I am going to all the brackets, change to insert mode, press ‘DEL,’ exit out of the insert mode, and repeat :P. Can anyone advise? Thanks!
Use
Jto concatenate lines. You can move to the opening brackets via[[keys.