Merge changes using vimdiff

后端 未结 3 632
礼貌的吻别
礼貌的吻别 2021-01-30 01:32

In my case, I have two files file1 and file2. Using vimdiff, I want to merge the changes as follows:

  1. In first difference, place line from file1 above line from fi
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 02:09

    You can switch back and forth between the two windows with Ctrlww. You can copy from one window do a Ctrlww, and then paste into the other. As you resolve differences, the highlights will change, and disappear.

    Take a look at this video.

提交回复
热议问题