On 2009-08-10, sinbad wrote:
> i have a file with diff in vim shown as below
> 
> 1.old   1.new
> abc   | foo
> dce   | bar
> ---     | ---
> ---     | ---
> ---     | ghi
> foo    | jkl
> bar    | mno
> 
> foo, bar are out of aligned because of some changes in file 1.new;
> now i want to realign foo in 1.old to foo in 1.new and start diffing
> from there, how can this be done.

The best you can do is execute ":diffu" after making the changes and
hope that diff and vim align the differences the way you want them.
There is no way to force any particular alignment between diff'd
buffers.

> and more question, is vim good for viewing diffs?

Except for little problems like yours, I think vim is excellent for
viewing diffs.  I use a number of different revision control systems
and have them all configured to use vimdiff or gvimdiff for viewing
differences between file versions.  I also use it for such things as
comparing my Unix environments between systems.  I like that it
folds regions that are the same and that I can edit either
file/buffer with the full capability of vim.

Regards,
Gary



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to