How to run mvim (MacVim) from Terminal?

前端 未结 12 951
北荒
北荒 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:49

    If you already have macVim installed: /Applications/MacVim.app/Contents/MacOS/Vim -g will give you macVim GUI.

    just add an alias.

    i use gvim because that is what i use on linux for gnome-vim.

    alias gvim='/Applications/MacVim.app/Contents/MacOS/Vim -g'

提交回复
热议问题