Saturday, April 21, 2012

Re: Using :diffpatch with a non-file source?

On Friday, 20 April, 2012 at 20:57:55 BST, Tim Chase wrote:
>" 1) diff against a previous revision of the file
> :diffpatch !svn diff -r1234 %

For this, I'd use vcscommand (http://www.vim.org/scripts/script.php?script_id=90) like this:

:VCSVimDiff 1234

>They can be worked around pretty readily by writing the diff to a temp
>file and then :diffpatch'ing against that file, or in the first case,
>using ":r !svn cat -r1234 #" in a new buffer and then ":diffthis"ing
>the new buffer.

I think the vcscommand does the former method.

--

.

--
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

No comments:

Post a Comment