Merge lines cleanly.
Section: Counts, join, undo, and replace
Join lines
vim
vim
J gJExplanation
`J` joins with spacing; `gJ` joins without inserting extra whitespace.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Counts, join, undo, and replace