Skip to content

Instantly share code, notes, and snippets.

Avatar

Nakhyun Choi cinakyn

View GitHub Profile
@cinakyn
cinakyn / Vim.scpt
Created Oct 29, 2019
Open files with iTerm vim
View Vim.scpt
-- 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"