Skip to content

Instantly share code, notes, and snippets.

@y00rb
Created October 4, 2015 08:59
Show Gist options
  • Save y00rb/a6d9f3d43fadfa825461 to your computer and use it in GitHub Desktop.
Save y00rb/a6d9f3d43fadfa825461 to your computer and use it in GitHub Desktop.
How upgrade vim as system default
# mercurial required - install if you don't already have it.
$ brew install mercurial
# install Vim
$ brew install vim
# if /usr/bin is before /usr/local/bin in your $PATH,
# hide the system Vim so the new version is found first
$ sudo mv /usr/bin/vim /usr/bin/vim72
# should return /usr/local/bin/vim
$ which vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment