I know it’s possible to open links in an html page (let’s say, if you’re using Firefox) with TextMate if the link has this format:
<a href="txmt://open?url=file:///home/.../index.html.haml">View</a>
But is it possible to do a similar thing with VIM? Perhaps like so:
<a href="vim://open?url=file:///home/.../index.html.haml">View</a>
Ideally this would use an existing VIM session.
Cheers,
Bernie
Found a way to do it:
Add a Protocol handler to Firefox
Open firefox and navigate to about:config
Add the following keys
Create the script ~/protocol_handler/prot.sh
Copy and paste the following into the file:
Save the file.
Change the file mode to be executable:
I’m not sure if you have to restart Firefox or not.
If you actually want to use the “vim://” protocol just change the ending on the network keys from txmt to vim. Since several Rails plugins (rails-footer, namely) out there already use txmt, I just used that to avoid recoding.
Have fun!
Berns