vimdiff with only the different lines shown

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

vimdiff with only the different lines shown

tuxic
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


--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20201107071450.4yfslu2tk5tqc7wz%40solfire.
Reply | Threaded
Open this post in threaded view
|

Re: vimdiff with only the different lines shown

rwmit...@gmail.com


On Saturday, November 7, 2020 at 2:15:02 AM UTC-5, [hidden email] 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/23a10faf-22ca-444d-a83a-429d4ae51e3eo%40googlegroups.com.