Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overriding system vim on Mac

I installed macvim via brew install macvim --override-system-vim. All appears to be well. When I do an ls -lart on /usr/local/bin here is what I get for the symlinks relative to 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

Additionally, running which vim yields /usr/local/bin/vim. However, when I run vim from terminal I get version 7.3 rather than 7.3.754 that I get when I run /usr/local/Cellar/macvim/7.3-66/bin/vim directly. What am I missing here, as it is obviously not the same.

like image 378
Levi Avatar asked Mar 19 '13 05:03

Levi


1 Answers

The symlink looks fine. Try to restart your terminal. Could be some caching issue.

like image 51
Chuan Ma Avatar answered Sep 30 '22 03:09

Chuan Ma