Skip to content

Instantly share code, notes, and snippets.

View cinakyn's full-sized avatar

Nakhyun Choi cinakyn

View GitHub Profile
cinakyn / Vim.scpt
Created October 29, 2019 05:07
Open files with iTerm vim
-- forked version of
on run {input, parameters}
set paths to ""
repeat with i from 1 to length of input
set cur to item i of input
set paths to paths & " " & quote & POSIX path of cur & quote
end repeat
set cmd to "vim -p" & paths
tell application "iTerm"