Wednesday, June 17, 2015

RE: Diff mode via Tabs

David Fishburn wrote:
> I use gVim for diffing from my source control system using:
> gvim.exe -O -d file1.txt file2.txt

I avoid problems by working in Vim. I use some external tool to generate a list of files I want to diff, then paste it into a temporary buffer in Vim. Either the external tool or a Vim script massages the list to come up with text like this:

:tabe new1.txt
:vert diffs old1.txt
:tabe new2.txt
:vert diffs old2.txt
:tabe new3.txt
:vert diffs old3.txt

With the cursor in that, the following copies and executes it:

yip
@"

John


--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment