Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created August 18, 2012 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnantoni/3384187 to your computer and use it in GitHub Desktop.
Save johnantoni/3384187 to your computer and use it in GitHub Desktop.
open in macvim ~ applescript
on run
tell application "Finder" to get folder of the front window as string
set workingDir to POSIX path of result
do shell script "cd \"" & workingDir & "\"; ~/.dotfiles/bin/mvim > /dev/null 2>&1"
end run
@johnantoni
Copy link
Author

just compile it with Applescript and drag it into your Finder toolbar.

then any time your in a directory you want to open in MacVim, run the script from the finder toolbar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment