Friday, April 20, 2012

Using :diffpatch with a non-file source?

I'm trying to figure out if there's an easy way to do a
:diffpatch that uses data other than from a file. A theoretical
pair of usage ideas:

" 1) diff against a previous revision of the file
:diffpatch !svn diff -r1234 %

" 2) diff against a patch in buffer #4 even if it's not on-disk
:diffpatch #4


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'm just wondering if there's something I've missed that would
make this easier (without littering my disk with patch files).

-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

No comments:

Post a Comment