aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-03-15 07:14:42 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-03-15 12:14:42 +0100
commit680252aa15159f0e969f6d169d01a8fbad097fa4 (patch)
treea778b6677b7b23e33dfe25c2556ca818e220e8ec /runtime
parentced980ff17e18267e3d7a55fc1c513d967790e5e (diff)
downloadrneovim-680252aa15159f0e969f6d169d01a8fbad097fa4.tar.gz
rneovim-680252aa15159f0e969f6d169d01a8fbad097fa4.tar.bz2
rneovim-680252aa15159f0e969f6d169d01a8fbad097fa4.zip
vim-patch:8.1.0728: avoid breaking after single space #9733
Problem: Cannot avoid breaking after a single space. Solution: Add the 'p' flag to 'formatoptions'. (Tom Ryder) https://github.com/vim/vim/commit/c3c3158756ae074052b0db2a3e3a7ba192df5330
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/change.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index c73b460767..1761616651 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1635,6 +1635,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: