Created
August 18, 2012 03:35
-
-
Save johnantoni/3384187 to your computer and use it in GitHub Desktop.
open in macvim ~ applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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