Last active
August 29, 2015 14:09
-
-
Save esneider/828aedb5058a363bb5a8 to your computer and use it in GitHub Desktop.
Open a file in vim terminal (iTerm)
This file contains hidden or 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 {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