vimdiff with only the different lines shown

16 views
Skip to first unread message

tu...@posteo.de

unread,
Nov 7, 2020, 2:15:02 AM11/7/20
to vim...@googlegroups.com
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


Richard Mitchell

unread,
Nov 7, 2020, 8:08:56 AM11/7/20
to vim_use
 Not vim, but you could:

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

that would select either the left or right side.



Reply all
Reply to author
Forward
0 new messages