mac 安装最新的 macvim 并替换系统默认的 vim

来源:互联网 发布:淘宝韩都衣舍女装 编辑:程序博客网 时间:2024/06/15 03:06

Here is the procedure I recommend, for those who are comfortable with the command-line and with Homebrew:

Install Homebrew.

Run the following on the command line (in Terminal):

brew install macvim --override-system-vimbrew linkapps

Edit your shell startup files to ensure that /usr/local/bin comes first in your $PATH.

If you use vim as $VISUAL or $EDITOR, add `export VISUAL='mvim -f' to your environment (details).

Check that you installed everything correctly by running

brew doctor

Now, you can run the graphical MacVim on a file by running mvim foo.txt from the command-line. Or, you can run the text-based editor by running vim foo.txt. Also, if other programs (e.g., git) fork off a separate editor, they'll run the graphical MacVim.





http://apple.stackexchange.com/questions/59375/how-do-i-install-macvim
0 0
原创粉丝点击