remove new line and bring next line up

Vu Pham vu at sivell.com
Fri Apr 9 12:09:44 PDT 2010


In vi, I use J at the end of a line to move the next line up next to the 
current line. How can I do it over many lines by one or two commands ?

What I want is to convert

a,
b,
c,
d,
e

to a,b,c,d,e


I tried
:n,m s/control-VcontrolJ//g
but it fails.

Thanks,
Vu



More information about the Linux-users mailing list