Skip to content

Instantly share code, notes, and snippets.

View cinakyn's full-sized avatar

Nakhyun Choi cinakyn

View GitHub Profile
@cinakyn
cinakyn / Vim.scpt
Created October 29, 2019 05:07
Open files with iTerm vim
-- forked version of https://gist.github.com/charlietran/43639b0f4e0a01c7c20df8f1929b76f2
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"