Skip to content

Instantly share code, notes, and snippets.

@esneider
Last active August 29, 2015 14:09
Show Gist options
  • Save esneider/828aedb5058a363bb5a8 to your computer and use it in GitHub Desktop.
Save esneider/828aedb5058a363bb5a8 to your computer and use it in GitHub Desktop.
Open a file in vim terminal (iTerm)
on run {input}
tell application "iTerm"
tell (make new terminal)
tell (launch session "Default")
activate
write text "vim " & quoted form of (POSIX path of input) & "; exit"
end tell
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment