In command mode:
[range]j[lines]
EG: here you want to make the entire buffer:
%j
If you just want to make 10 lines from the current cursor position:
j10
If you do not want to replace newlines with spaces! after j.
%j! j!10
And for uberfancy:
5j20
Goes to line 5 and joins the next 20 lines.
TWK Jul 05 2018-11-11T00: 00Z
source share