Update built-in vim on Mac OS X

后端 未结 8 942
后悔当初
后悔当初 2020-12-12 08:50

I know this might be more appropriate at Ask Different, but as I tried adding tags there, there was no vim tag, only macvim. So I figured I might g

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 09:27

    Like Eric, I used homebrew, but I used the default recipe. So:

    brew install mercurial
    brew install vim
    

    And after restarting the terminal homebrew's vim should be the default. If not, you should update your $PATH so that /usr/local/bin is before /usr/bin. E.g. add the following to your .profile:

    export PATH=/usr/local/bin:$PATH
    

提交回复
热议问题