What Is the Difference Between a Blank Line and an Empty Line in Vim?

I just read the help section for paragraph. It says that paragraph starts after an empty line. At the end it also mentions that the same does not apply to blank line.

I am trying to separate paragraphs by inserting "no character lines" wherever I want to break the text into paragraphs. When I used the %norm vipJ command the formatted text did not turn out as expected.

  1. What is the difference between blank line and empty line?
  2. How can I create an empty line?
  3. How can I convert blank lines into empty lines?

This will help make the %norm vipJ work the way I want it to work. Thanks in advance.

1 Answer

An empty line is zero characters long, whereas a blank line consists entirely of whitespaces.

o and O insert a blank line (and switch to insert mode). If you don't want to switch to insert mode, see

2

Your Answer

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

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest