How to run mvim (MacVim) from Terminal? How to run mvim (MacVim) from Terminal? shell shell

How to run mvim (MacVim) from Terminal?


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

brew install macvimmvim -v

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

alias vim='mvim -v'


There should be a script named mvim in the root of the .bz2 file. Copy this somewhere into your $PATH ( /usr/local/bin would be good ) and you should be sorted.


If you go the brew route, the best way to install would be:

brew install macvim --with-override-system-vim

That will provide mvim, vim, vi, view, etc. in /usr/local/bin (all symlinked to the copy in the Cellar). This also removes the need to create any aliases and also changes your vi, vim, etc. to all use the same Vim distribution as your MacVim.