Saturday, November 7, 2020

Re: vimdiff with only the different lines shown



On Saturday, November 7, 2020 at 2:15:02 AM UTC-5, tu...@posteo.de wrote:
Hi,

is there a way to do a vimdiff of two files in a way, that only the
different (and on one or the other side missing) lines are shown?

With "shown" I don't want other lines to not to appear at all (that
is: not simply collaps but pure "not there").

Is that possible?

Cheers!
mcc

 Not vim, but you could:

diff file1 file2|grep"^<"  # or  "^>"

that would select either the left or right side.



--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/23a10faf-22ca-444d-a83a-429d4ae51e3eo%40googlegroups.com.

No comments: