Skip to content

Instantly share code, notes, and snippets.

@amedeo
Created February 21, 2011 15:12
Show Gist options
  • Save amedeo/837180 to your computer and use it in GitHub Desktop.
Save amedeo/837180 to your computer and use it in GitHub Desktop.
cli vim from homebrew MacVim
#! /bin/sh
lastversion=`ls -d /usr/local/Cellar/macvim/* | sort -n | tail -1`
cwd=`pwd`
cd $lastversion/MacVim.app/Contents/MacOS
exec ./Vim -c "cd $cwd" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment