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

Viewed 8397

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 subroutines in two separate files and then diff them, but is there a way to do it within the original file?

6 Answers
Related