12

我通过brew install macvim --override-system-vim. 一切似乎都很好。当我ls -lart/usr/local/bin这里做一个时,我得到的符号链接相对于vim

vimex -> ../Cellar/macvim/7.3-66/bin/vimex      
vimdiff -> ../Cellar/macvim/7.3-66/bin/vimdiff
vim -> ../Cellar/macvim/7.3-66/bin/vim
view -> ../Cellar/macvim/7.3-66/bin/view
vi -> ../Cellar/macvim/7.3-66/bin/vi
mvimex -> ../Cellar/macvim/7.3-66/bin/mvimex
mvimdiff -> ../Cellar/macvim/7.3-66/bin/mvimdiff
mvim -> ../Cellar/macvim/7.3-66/bin/mvim
mview -> ../Cellar/macvim/7.3-66/bin/mview
gvimex -> ../Cellar/macvim/7.3-66/bin/gvimex
gvimdiff -> ../Cellar/macvim/7.3-66/bin/gvimdiff
gvim -> ../Cellar/macvim/7.3-66/bin/gvim
gview -> ../Cellar/macvim/7.3-66/bin/gview

此外,运行which vim收益率/usr/local/bin/vim. 但是,当我vim从终端运行时,我会得到版本,7.3而不是直接7.3.754运行时得到的版本/usr/local/Cellar/macvim/7.3-66/bin/vim。我在这里缺少什么,因为它显然不一样。

4

2 回答 2

37

符号链接看起来不错。尝试重新启动您的终端。可能是一些缓存问题。

于 2013-03-19T06:00:43.320 回答
2

系统 vim 在 /usr/bin 中。如果你的路径在 /usr/local/bin 之前有 /usr/bin,你会得到系统 vim。在终端中使用“echo $PATH”检查您的路径。

于 2013-03-19T12:54:44.053 回答