0

Say I have the following text open in vi:

Lorem Ipsum is simply dummy text [CURSOR]
of the  printing and ...

The cursor position is denoted by [CURSOR]

How can I delete the end-of-line that follows the cursor so that the next line wraps around?

  • 2
    help J, help join... im almost certain theres a dupe to be found somewhere. – D. Ben Knoble Jan 21 at 3:28
  • 2
    Maybe not! Guess this will be my join dupe now. – D. Ben Knoble Jan 21 at 3:31
2

In normal mode, use the J command. From the Ex command line, prefer join.

There are also variants, such as gJ.

  • 1
    Ahhh thanks ... I've been looking for this for like 20 years :/ – user1172468 Jan 21 at 4:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.