vim diff between two parts of a file code example
Example: vim compare 2 files
#open second file in vim with ":vsp mysecondfile.txt" then
:windo diffthis
#open second file in vim with ":vsp mysecondfile.txt" then
:windo diffthis