You can merge two lines in the Vim editor by placing your cursor on the first line and pressing Shift + j (capital J). This way, the line with the cursor will be combined with the line immediately below it. Keep pressing Shift + j to add more lines.