On Mon, Apr 21, 2014 at 5:14 AM, Jeri Raye <[email protected]> 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 http://vim.sourceforge.net/script.php?script_id=1108 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
