Sunday, August 5, 2012

Re: Searching for a specific kind of difference with vimdiff

On 05/08/12 10:49, meino.cramer@gmx.de wrote:
> Hi,
>
> I am using vim on Gentoo Linux, which package manager allows to dump
> all available packages description into a textfile. This is what I am
> doing from time to time.
> When comparing the current and previous package lists, I am interested
> in the differences, which are highlighted blue...which does not say anyhting ;)
> ...these are the differences, where the current list has included a
> new package, which does not appear in the previous list.
> The lists themselves are very log beasts (~90000 lines), so scrolling
> to look for the next "blue" is somehow tedious and error prone.
>
> Is there a way to search or directly jump to the next difference of
> this kind in the current list?
>
> Thank you very much in advance for any help!
> Have a nice sunday!
> Best regards,
> mcc
>
>
>
Maybe run "diff" in context or unified mode, which would give you only
the differences, with a few context lines above and below each of them?
For details, run "man diff" or "info diff" in your favourite shell.

Or else, use zM in vimdiff to fold away everything that is the same, so
you'll only see the differences?
See :help zM


Best regards,
Tony.
--
ARTHUR: Well, I can't just call you `Man'.
DENNIS: Well, you could say `Dennis'.
ARTHUR: Well, I didn't know you were called `Dennis.'
DENNIS: Well, you didn't bother to find out, did you?
The Quest for the Holy Grail (Monty
Python)

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

No comments: