0

所以,下面是我的 VIM 文件的 copypasta。它有 7000 多行,所以我试图找到清理它的命令。基本上,我只需要以 P: 或 F: 开头的换行符,但要这样做,我必须将任何错误换行的行移回正确的行:下面,以“Nobody can ...”开头的行需要被搬回来……

P:     Well at this stage here, I can.t really say for anything really, cause I don.t know anything. $
F:       Okay. And that.s my job Rob, my job is to come in here and explain $
some stuff to you and then once you.ve a better understanding you can choose whether or not you want to explain that stuff. Alright, because that.s gonna be your choice I.m not gonna force you to say anything. I.m not gonna make you do anything you don.t want to do. $
Nobody can ever make you do that, nobody can make Robert $
4

1 回答 1

2

用于:v查找所有不以Por开头的行F,并将它们与上一行连接起来:

:v/^\(P\|F\)/ normal kJ
于 2013-10-24T06:13:56.577 回答