Installing vim with homebrew assistance

前端 未结 6 439
生来不讨喜
生来不讨喜 2021-02-03 23:09

I tried to install YouCompleteMe on Mac for vim, but I\'ve been using the system vim which is version 7.3. I tried to update my vim using homebrew by typing brew install v

6条回答
  •  无人及你
    2021-02-03 23:52

    Rather than reinstalling vim you can move your current vim to vim73 (or something similar).

    First check if /usr/local/bin is present in PATH environment variable. Doing echo $PATH on your terminal should do that.

    Install vim with homebrew if you haven't already.

    brew install vim
    

    Then move your current vim installation.

    mv /usr/bin/vim /usr/bin/vim73
    

    Run which vim to confirm. It should say /usr/local/bin/vim.

提交回复
热议问题