tags:

views:

465

answers:

1

I'm looking for the good way to use vimdiff. Currently I figured out how to get a block of diff from a buffer to another (using 'do') but what I'm willing to do now is to simply get one (or some) line of a block in the other buffer.

The vimdiff doc say :

:[range]diffget

but I can't figure how to have a correct range parameter to simply copy the line I'm on from a buffer to the other.

+5  A: 

You can use

:.,.

as range from current line to the current line.

According to the doc you can omit range and then current line or line above will be used.

Mykola Golubyev
without range it copy the whole diff block, not just the current line.
claferri