Joining lines
This lesson is a handful of small commands that each do one thing to a selection. None of them needs much explanation, so this lesson moves quickly.
First up is J, which joins lines. Press it in normal mode and the line
below the cursor is pulled up onto the current one, with a single space in
between. The line break and any leading whitespace on the joined line are
removed.
Like everything else in Helix, J works on the selection. With a single
cursor it joins two lines; select several lines first — x a few times, or
% for the whole buffer — and one press joins them all.
Work through the checklist below to put the sentence back on one line.