i on mac, ei capitan.
here code:
my question is: how many vim have? know that:
- /usr/bin/vim mac osx
- /usr/local/bin/vim homebrew
- /usr/local/cellar/vim/xxx/bin/vim homebrew (?)
also:
so question: which 1 should use, if want use brew upgrade it.
thanks reply , help!
you should use 1 in /usr/local/bin making sure path environment variable includes /usr/local/bin before /usr/bin.
if carefully, see /usr/local/bin/vim symbolic link homebrew's cellar , each time update vim in homebrew update symlink in /usr/local/bin point latest version in cellar. so, if use /usr/local/bin/vim using latest.
let's check that:
ls -l /usr/local/bin/vim lrwxr-xr-x 1 mark admin 30 21 jul 18:25 /usr/local/bin/vim -> ../cellar/vim/7.4.2033/bin/vim yes, /usr/local/bin/vim points /usr/local/cellar/vim/7.4.2033/bin/vim , why same version when run both commands - because same thing.
the apple-shipped version ancient - don't want that.



Comments
Post a Comment