How to ‘diff’ two subroutines in the same file in Vim?

前端 未结 6 943
既然无缘
既然无缘 2020-12-13 00:10

Is it possible to diff or even vimdiff two very similar subroutines occurring in the same file? If so, how?

I can think of copying the two s

6条回答
  •  眼角桃花
    2020-12-13 00:44

    you can try Block diff vim plugin, it will make 2 new buffer in a new tab to show the differences.

提交回复
热议问题