1
0
forked from aniani/vim

patch 8.1.0728: cannot avoid breaking after a single space.

Problem:    Cannot avoid breaking after a single space.
Solution:   Add the 'p' flag to 'formatoptions'. (Tom Ryder)
This commit is contained in:
Bram Moolenaar
2019-01-11 22:15:05 +01:00
parent 44a7db4ffd
commit c3c3158756
5 changed files with 55 additions and 2 deletions

View File

@@ -1720,6 +1720,17 @@ j Where it makes sense, remove a comment leader when joining lines. For
// in the list ~
Becomes:
int i; // the index in the list ~
p Don't break lines at single spaces that follow periods. This is
intended to complement 'joinspaces' and |cpo-J|, for prose with
sentences separated by two spaces. For example, with 'textwidth' set
to 28: >
Surely you're joking, Mr. Feynman!
< Becomes: >
Surely you're joking,
Mr. Feynman!
< Instead of: >
Surely you're joking, Mr.
Feynman!
With 't' and 'c' you can specify when Vim performs auto-wrapping: