I am working on this workflow where I have a file filter with the most important text files (for me, at least) to open with vim in iTerm.
Currently I have it configured so that I can choose to just run vim and get a new document or I can choose to run "v $SOMEFILE" in Alfred to make it open that way.
It's super cool, I've used https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred/ and Macvimtoolbox as inspiration for this. There is one bug, however.
When the active iTerm window is not just sh