If you want your terminal vim to open files you double click, follow the following steps (MacOS only):
- Open Automator
- Select Application
- Copy the attached file
- Save and set as default for opening files
Multiple files are opened in vim tabs. If there is already a vim instance running, files are opened in it.
Bugs / Problems:
- does not open files when vim instance is in insert mode
- vim instances running e.g. in tmux are not recognized
Also thank Daniel Beck, who posted the script I adjusted http://superuser.com/questions/283418/how-can-i-make-terminal-vim-my-default-editor-application-in-mac-os-x