Visually select a range of words and press J
to join them:
- select 3 lines and
J
oin them
VjjjJVjjJ
- select a paragraph (text separated by an empty line(s)) and
J
oin them
vipJ
Or for the whole buffer you can simply :%join
or :%j
to join all lines.