minomic
minomic

Reputation: 665

Vim - force new lines with auto format option

I am using vim with auto-format option to break the text at 72 characters. If I do :set fo? I get formatoption=tqa. Now the problem is that I can no longer insert a manual line break: if I write something, then hit enter and type something else, the line break is automatically removed. So I need to hit enter twice to start a new paragraph, leaving a blank line. How can I do something like this?
some text on this line
some other text on a new line

Upvotes: 2

Views: 444

Answers (1)

sidyll
sidyll

Reputation: 59307

You can use the w flag as well. Then a paragraph is only considered to be continued in the following line if the line ends with trailing whitespace.

Upvotes: 2

Related Questions