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() {
}
开发者_如何学JAVA
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 J
to concatenate lines. You can move to the opening brackets via [[
keys.
精彩评论