Skip to content

Instantly share code, notes, and snippets.

@tvon
Created April 8, 2011 18:48
Show Gist options
  • Save tvon/910470 to your computer and use it in GitHub Desktop.
Save tvon/910470 to your computer and use it in GitHub Desktop.
Use homebrew installation of macvim for terminal vim command.
if [ -x `which brew` ]; then
macvim_version=`brew list --versions macvim | sed 's/.* \([0-9\.\-]*\)$/\1/'`
if [ -n "${macvim_version}" ]; then
alias vim=`brew --prefix`/Cellar/macvim/${macvim_version}/MacVim.app/Contents/MacOS/Vim
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment