Let’s say you have two lines and you want to join them together on the same line:
I like to move it
move it
Put the cursor anywhere on the first line and push “J”
I like to move it move it
Like most vim commands you can specify a count.
I like “3J”
to move
it move it
I like to move it move it
Note: Vim puts a space between each line when combined.




Recent Comments