tomtom/quickfixsigns_vim — pull request #34 by Chronial (2013-04-16 13:52:34+00:00)
Title: vcsdiff: make signs more sensible

VCS diff signs will now mark a change not just on one line, but on as
many lines as have been deleted for the change, up to the number of
lines that have been added. So if you replace 5 lines with 7 lines, you
will get 5 CHANGED signs followed by 2 ADDED signs. If you replace 5
lines with 3 lines, you will get 3 CHANGED signs.

There are also quite a few changes to the balloon message:

* The message is now the same for a whole block of changes.
* The message does no longer display added lines - these are shown in
the editor anyways
* The message now starts with the hunk header

So in summary the message for every change in a change block will be the
hunk header, followed by all of the deleted lines.

This will look horrible on systems without multiline balloons. But
according to the vim source, only unpatched win95 systems have no
multiline balloons.

Further the memory usage of the balloons is very wasteful as the block
message is replicated for every line. Worst case is a completely
rewritten file where the memory usage for this will be line-count *
file-size. But this is a rare scenario and should still be fine on a
semi-modern machine.