How do I join two lines in vi?

后端 未结 9 1526
后悔当初
后悔当初 2020-12-07 08:41

I have two lines in a text file like below:

S_F
_ID_T_O.DAT
         


        
9条回答
  •  攒了一身酷
    2020-12-07 09:29

    If you want to join the selected lines (you are in visual mode), then just press gJ to join your lines with no spaces whatsoever.

    This is described in greater detail on the vi/Vim Stack Exchange site.

提交回复
热议问题