To compare two file of which one resides on another system issue this command:
vim -d <firstfile> scp://<remote-system>//<path-to-file>/<secondfile>