How to run mvim (MacVim) from Terminal?

前端 未结 12 953
北荒
北荒 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

    Assume MacVim is installed in the Application folder.

    Instead of adding MacVim path to your environment, create a link by typing this in terminal:

    sudo ln -s /Applications/MacVim.app/Contents/bin/mvim /usr/local/bin/mvim

    Then, open a new terminal window/tab and type mvim.

提交回复
热议问题