brew 安装的 vim 的版本是 7.4+,系统附带的 vim 版本是 7.3
$ which vim
/usr/bin/vim
$ brew info vim
vim: stable 7.4.2085 (bottled), HEAD
Vi "workalike" with many additional features
http://www.vim.org/
Conflicts with: ex-vi
/usr/local/Cellar/vim/7.4.2085 (1,692 files, 22.7M) *
$ echo $PATH
/usr/local:/usr/bin:/bin:/usr/sbin:/sbin:/Users/Patrick/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
OS X 版本 10.11.6 (会不会和这个有关?)
1
yangtukun1412 2016-07-22 10:00:08 +08:00
export $PATH=/usr/local/Cellar/vim/7.4.2085/bin:$PATH
|
2
ooxxcc 2016-07-22 10:02:43 +08:00 1
PATH 里面 /usr/local 可以去掉,/usr/local/bin 放在 /usr/bin 前面
|
3
yangtukun1412 2016-07-22 10:02:55 +08:00
刚看了下 homebrew 会在 /usr/local/bin 下面建一个软链接, 所以这样也许更好一点:
export $PATH=/usr/local/bin:$PATH |
4
intsilence 2016-07-22 10:13:44 +08:00
你需要 `brew link vim`
|
5
vyronlee 2016-07-22 10:14:14 +08:00
brew install vim --with-override-system-vi
brew info vim 可以看到更多参数信息 |
6
FrankFang128 2016-07-22 10:15:07 +08:00
neovim
|
8
zander 2016-07-22 10:26:33 +08:00
把 /usr/local/bin 靠前。
|
9
kevin1852 2016-07-22 11:04:11 +08:00
brew install mercurial
就好了 |