Im surprised no one even mentioned otherwise:
:%s/\n/ /
I am also surprised that no one indicated that the range 1,$ has an abbreviation for % .
(This does not do the same as concatenating strings, but depending on circumstances, which may be more appropriate.)
Aristotle Pagaltzis Dec 24 '08 at 22:36 2008-12-24 22:36
source share