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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like