Friday, April 24, 2020

Changing the scope of 'diff' to something more granular?

I have a couple files that changed and can diff any pair of them with

$ vim old-a.txt new-a.txt

which works as expected. However, if I try to diff old-a/new-a and
also try to :diffsplit old-b/new-b, it compares *all* of those files.
Which is also expected. So currently I need to launch each diff in
its own session of vim.

shell1$ vim old-a.txt new-a.txt
...
shell2$ vim old-b.txt new-b.txt

While this is functional (and less bad within a tmux session), is it
possible to narrow the scope of a :vimdiff to a vim-tab so that I can
have a single vim session with multiple file-diff pairs within?

Mostly it's nice to have things like `gd`, `gD`, jump to places that
show the diffs in the destination as well.

Thanks for any ideas,

-tim



--
--
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/20200424160948.3af20ea3%40bigbox.attlocal.net.

No comments: