On Mi, 12 Sep 2018, Rick Howe wrote:
> Hi,
>
> I found an internal diff introduced in the patch-8.1.360.
> Until the patch, everone has to install the external diff command
> so my diff-related plugin can use the command because it is always avaiable.
> The patch is great, but the assumption is not true now.
>
> Is it to possible to implement a builtin function something like this?
>
> xdiff({list_in}, {list_new})
> It takes two lists of items,
> follows diffopt option including icase and iwhite,
> and returns a list of ed-style diff output.
>
> For example,
> let l1= ['1', '2', '3', '4', '5']
> let l2= ['1', '3', '2', '5', '4']
> then, xdiff(l1, l2) returns
> ['2d1', '< 2', '4c3', '< 4', '---', '> 2', '5a5', '> 4']
>
> The function is too simple and would need more parameters. And I am not sure
> how difficult/easy to take advantage of the internal xdiff library.
> Please let me know any concern and idea.
That should be possible, although the xdiff result would be a unified
diff. It probably makes sense to add another parameter for using custom
diff options.
Best,
Christian
--
Was ist Orange, tiefergelegt und fährt ganz schnell?
Ein Mantarinchen.
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.