- Can be pasted into the script editor portion of a new Applescript extension for Alfred (Requires the power pack)
- Should be set as silent and an action without a keyword so you don't pollute Alfred's commands.
- Pre-built version can be downloaded here
You will need to edit the script and replace e
with your vim command
- Select a file in Alfred
- Type
vim
, select the action when you see it - Will launch an iTerm 2 session with the "Vim" profile and automatically start vim for the file, or in the directory you selected.