Wednesday, February 25, 2015

[ann] New plugin to use patience diff algorithm for vim

Hi,

I made a new plugin to make Vim understand unified diffs.

This allows to generate diffs using the patience algorithm which might
provide better readable diffs. This really depends on the changes and
will not always provide better results but at least this allows to
easily switch between different diff algorithms.

Alternatively one can use any other tool to generate the diffs as long
as they are "unified" or "normal" style diffs.

You can also customize your setup to use any other tool to generated
diffs (e.g. mercurial) Read the help on how to configure the plugin
accordingly.

Screenshots are available at github:
https://github.com/chrisbra/vim-diff-enhanced

Installation:
Use the plugin manager of your choice. Or download the stable version of
the plugin, edit it with Vim (vim EnhancedDiff-XXX.vmb) and simply
source it (:so %). Restart and take a look at the help (:h
EnhancedDiff.txt)

Usage:

Once installed, take a look at the help at :h EnhancedDiff

Here is a short overview of the commands provided by the plugin:

:PatienceDiff - Use the Patience Diff algorithm for the next diff mode

:CustomDiff <algorithm> - Use <algorithm> to generate the diff. Use any of
myers
default
histogram
minimal
patience
After changing the algorithm, you need to run :diffupdate if you are in
diff mode to regenerate the diff.

Note: Those 2 commands use internally git to generate the diffs. Make sure you have at least git version 1.8.2 installed.

:DisableEnhancedDiff - Disable plugin (and use default Vim diff capabilities).

License:
The Vim License applies. See :h license

Best,
Christian
--
Der Vertreter klingelt an der Haustür.
Als ihm geöffnet wird, sagt er:
"Gnädige Frau, darf ich Ihnen unseren Verkaufsschlager vorführen,
von dem Ihre Nachbarin meint, Sie könnten ihn sich nicht leisten?"

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: