开发者

Quick VIM question

开发者 https://www.devze.com 2023-03-15 04:42 出处:网络
I remember seeing the following functionality somewhere on the web, but I can\'t seem to find it. If I have the following code:

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

精彩评论

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