How do I join multiple lines in vi?

How do I join multiple lines in vi?
Answer
When you want to merge two lines into one,
position the cursor anywhere on the first line, and press J to join the two lines
. J joins the line the cursor is on with the line below. Repeat the last command ( J ) with the . to join the next line with the current line.
 

Tìm kiếm

Back
Top