tags:

views:

90

answers:

2

I was used to doing

git diff | mate

but my new machine does not have mate and I use mvim. So I tried

git diff | mvim

and that did not work. What is the best way to see git diff in mvim editor.

I am using mac and I use mvim.

+5  A: 

I don't know about mvim specifically, but with normal vim you have to give it a filename of - to make it read stdin:

git diff | vim -

Perhaps mvim works the same?

speshak
+1 works for me in gvim, anyway
Gabe Moothart
+2  A: 

I do believe you might be seeking this... (obviously, with mvimdiff instead of vimdiff)

Amadan
that's awesome. thanks
Nadal