开发者

Quick VIM question

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜