On 2006-07-22, Christ van Willegen <[EMAIL PROTECTED]> wrote: > Hi, > > I only recently joined, I don't know if this has been discussed before... > > At the company where I work, we sometimes copy source from one project > to another, usually between classes of the same fuctionality, but > different naming. > > vim -d <src1> <src2> does almost what I want, but: > - Highlights differences in class names, and > - When putting/getting differencens, the class name is not updated. > > It would be nice to have options to 'tweak' the difference mode so > that some strings can be set as identical between one window and > another, also enabling the 'get' and 'put' commands to auto-replace > these strings on getting/putting.
This may not be quite what you're looking for, but what I have done in similar situations is to rename all the conflicting symbols in the "from" buffer to the names used in the "to" buffer, then execute ":diffu". Then I can more easily see the differences I'm really interested in. When I'm done editing, I save the changes to the "to" file but discard the changes made in the "from" buffer. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Wireless Division | Spokane, Washington, USA