Drag and drop VIM editing

25 Jun 2014

Edit in VIM icon in the Dock

I’ve been using the TextMate 2.0 alpha a lot recently. I realized today that I’ve been using it mostly because drag and drop is so convenient, not for specific editor features.

On the other hand, editing a file in VIM takes a lot more steps. Right click Terminal (since it’s always running), choose new window, type vim, then drag the file in. That’s pretty slow to just glance at a file.

So in the spirit of saving time, I decided to write some AppleScript to allow drag and drop into VIM. It’s on github (and below), and XKCD says I’ll break even on time - even after remembering how to post this.