On 12/11/06, Lev Lvovsky <[EMAIL PROTECTED]> wrote:

On Dec 11, 2006, at 10:07 AM, Yakov Lerner wrote:
> You get syntax coloring when editing patches/diffs. Regarding
> jumping by chunks and file boundaries -- it's
> fairly easy to to map some your 4 keys to these jumps:
> Just map your 4 favourite keys to
>            ?^@@@?<cr>
>             /^@@@/<cr>
>             ?^\*?<cr>
>             /^\*/<cr>
> that's it. And publish it as a "Patch mode for vim".

The feature that I'm looking for specifically is being able to edit a
patch, and have vim do the line numbering math for me.  Also the
splitting or combining of hunks.

Isn't it easier to use vimdiff, and edit left and/or right file, then
produce the diff ? I mean, having the diff plus the file, you
can apply the patch and produce the 2nd file, and then use vimdiff.

I really think this is optimal to editing the raw diff.

What if you  need to change the line which is not in the diff ?
You can't, when editing just diff. When editing in vimdiff,
you're not limited. And all auto-calculations are done for you, too.

Just my 5 c
Yakov

Reply via email to