How to run mvim (MacVim) from Terminal?

前端 未结 12 945
北荒
北荒 2020-11-30 15:55

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 d

12条回答
  •  悲&欢浪女
    2020-11-30 16:39

    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.

提交回复
热议问题