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
  • 2
    help J, help join... im almost certain theres a dupe to be found somewhere.
    – D. Ben Knoble
    Commented Jan 21, 2019 at 3:28
  • 2
    Maybe not! Guess this will be my join dupe now.
    – D. Ben Knoble
    Commented Jan 21, 2019 at 3:31

1 Answer 1

2

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

There are also variants, such as gJ.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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