<br><br><div class="gmail_quote">On Fri, Apr 9, 2010 at 15:09, Vu Pham <span dir="ltr"><<a href="mailto:vu@sivell.com">vu@sivell.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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 ?<br>
<br>
What I want is to convert<br>
<br>
a,<br>
b,<br>
c,<br>
d,<br>
e<br>
<br>
to a,b,c,d,e<br>
<br>
<br>
I tried<br>
:n,m s/control-VcontrolJ//g<br>
but it fails.<br>
<br></blockquote><div><br>cat $file | tr -d '\n' > $file.new <br></div></div><div style="margin: 2em 0pt;" name="sig_4c86bc8f53"><br>
-- <br>
Douglas J Hunley<br>
<a href="mailto:doug@hunley.homeip.net">doug@hunley.homeip.net</a> : <a href="http://douglasjhunley.com">http://douglasjhunley.com</a> : Twitter: @hunleyd
<br><br>
Obsessively opposed to the typical.</div><br>