Skip to content

Instantly share code, notes, and snippets.

@brettbuddin
Created May 9, 2011 18:15
Show Gist options
  • Save brettbuddin/963028 to your computer and use it in GitHub Desktop.
Save brettbuddin/963028 to your computer and use it in GitHub Desktop.
DockSend for Vim
function! DockSend()
let filePath = expand("%:p")
let appleScript = "-e \"on run argv\r
\ignoring application responses\r
\tell app \\\"Transmit\\\" to open POSIX file item 1 of argv\r
\end ignoring\r
\end run\""
silent exec "!osascript " . appleScript . " \"". filePath . "\""
echo filePath." sent to Transmit."
endfunction
command! DockSend call DockSend()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment