How to run mvim (MacVim) from Terminal?

Fred picture Fred · Jan 13, 2010 · Viewed 159.8k times · Source

I have MacVim installed and I am trying to set it up as the editor for Git (version control), but I can't run 'mvim' from the command line as it isn't recognised. How do I setup mvim so I can run it from Terminal?

Answer

Swapneel Patil picture Swapneel Patil · Apr 15, 2011

I don't think I'd to add anything to the path, did

brew install macvim

mvim -v

should then open macvim in the terminal, you can also go ahead and alias that

alias vim='mvim -v'