In Linux, I use this - mapped to Alt-Z- I put it in one my my vim
startup files. This command sequence may not work if you try to do it
interactively (but you can play with it to find out what does work):
map ú mzlB"lyE:!o <16><12>l &<CR>;
Explained:
ú is alt-z- Enter this using control-V, then Alt-Z if you use
same shortcut key as I do...(I avoid multi-key entry for stuff I use
most often)
mz set mark 'z' for later return
l move one char to right if possible
B move cursor backward one big-word (to start of URL)
"lyE capture big-word into register 'L'
:!xdg-open go to Ex: command line, use xdg-open to process the
following arg(s)...
<16><12> In your chosen vimrc/other startup file, type control-V,
control-R
l & This inserts register L contents (which you will insert using
Control-R above)
The ampersand is important! In my linuxboxes (ubuntu, fedora, RHEL)
the command will not work without it. I do not know why.
Hope this helps.
--
Kind Regards,
Bill Hudacek
Master Certified IT Architect
All opinions are my own, of course.