Saturday, April 26, 2014

Re: Compare files, save differences

Hi David,

I've installed it, and open the two files:
When I do trough the GUI or with :WhatsMissing I get the error
WM: cannot search other buffers with :set nohidden

How do I solve that?

Rgds,
Jeri


On Mon, Apr 21, 2014 at 4:16 PM, David Fishburn <dfishburn.vim@gmail.com> wrote:

On Mon, Apr 21, 2014 at 5:14 AM, Jeri Raye <jeri.raye@gmail.com> wrote:
Hi,

I have a file allwords.txt.
And I have another file mywords.txt

How can I filter the differences, and safe them in another file called difwords.txt?

Example:
+------ allwords.txt -------+
James
Richard
Anna
Claude
Ben
+------------+

+------mywords.txt-----+
Anna
Ben
+-------------------+

This should then make the following file

+------difwords.txt-----+
James
Richard
Claude
+-----------+


Jeri,

I had the same problem when I create Vim syntax files.

I have a list of "words" and I need to compare those against all the words in my Vim syntax file.  So when the product I wrote the syntax file for comes out with a new version, there is typically more "keywords" which need to be added to the syntax file.

I have a process which creates 1 file with all the keywords for the new version.  Now I need to merge that with my existing Vim syntax file.

I want to see any combination of:
1.  All words missing.
2.  All words in both (not missing).
3.  Can also do the same linewise, rather than wordwise. 

So I wrote a plugin to do it:

WhatMissing.vim - Shows what is missing between 2 buffers

It has a menu to help with the choices and getting started.

Enjoy.
David

--
--
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.

--
--
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: