I applied Václav Šmilauer's 2007 breakindent patch to vim trunk. After a minimal amount of tweaking I got it to compile (see attached patch), but there is a weird bug when breakindent and linebreak are both set.
The bug is: after the first soft-wrap, the text seems to "backwrap" to the end of the previous line, more and more so as the number of soft-wraps increases.
It's very apparent in the attached screenshot. In it, the second paragraph starts with a space, the third with two spaces, and so on. This is to show that the amount of "backwrapping" depends on the amount of indenting that breakindent is supposed to preserve (and not on the work of linebreak, or anything else.)
If any Vim wizard has the time to look into it, I would appreciate it.
-Tobia
- Peter Odding
I had experienced exactly the same problems when checking out the vim_extended
Git repository a couple of months ago, but thought it was caused either by the
interaction of different experimental patches in that repository, or by my
peculiar system.
Is Václav Šmilauer, the patch author, reading this list? Please confirm this
(rather obvious) bug and whether you plan to fix it. I would really love (and
re-try) this feature; it would be nice if it could make it into the next Vim
release.
-- cheers, ingo