Skip to content

Instantly share code, notes, and snippets.

@SilverEzhik
SilverEzhik / Vim Launcher.scpt
Last active May 13, 2023 14:17 — forked from charlietran/TerminalVim.scpt
Double click files to open them in vim in a new iTerm window.
on run {input, parameters}
-- handle opening multiple files
set str to ""
repeat with i from 1 to length of input
set cur to item i of input
set str to str & " " & quote & POSIX path of cur & quote
end repeat
tell application "iTerm"
create window with profile "fast" -- use a profile with a lighter shell