vimdiff and MacVim

Antonio picture Antonio · Oct 28, 2009 · Viewed 14.1k times · Source

I'd like to run vimdiff on MacVim. Is there an easy way I'd be able to do it?

Answer

LeMiz picture LeMiz · Oct 28, 2009
  • From the terminal

If you have the mvim script installed (it is in the dmg, just put it somewhere in your PATH), you can just type in a shell:

mvim -d file1 file2

You can alias this to mvimdiff if you like.

  • From within macvim

In macvim, like in vim , you can also use:

:e file1
:diffsplit file2
or
:vert diffsplit file2

The second option gives you a vertical diff, which is usually more readable