How can I compare two files in emacs, similar to vim's vimdiff?
Ediff works similarly: M-x ediff
http://www.gnu.org/software/emacs/manual/html_mono/ediff.html
Emacs ediff is no way comparable to vimdiff. I think emacs ediff is just a wrapper on Linux diff command. It is just highlighting the lines diff tool marks as changed.
I found vdiff give vimdiff like granularity. Follow instructions at the below link to use it.
https://github.com/justbur/emacs-vdiff