If you have Vim and Netrw, you can open a URL in your browser of choice, right from the editor.
Place the cursor on the URL and type
This will invoke your file handler;
open for OSX. As a result, it also works with file types such as images, GIFs, and videos.