osx - How many vim do I have? -


i on mac, ei capitan.

here code:

enter image description here

my question is: how many vim have? know that:

  1. /usr/bin/vim mac osx
  2. /usr/local/bin/vim homebrew
  3. /usr/local/cellar/vim/xxx/bin/vim homebrew (?)

also:

enter image description here

enter image description here

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