Tuesday, March 10, 2020

Re: netrw#BrowseX fails when invoked from gvim on Ubuntu

Garvin Haslett wrote:
> I am using Vim 8.2 on Ubuntu 18.04.3
>
> If I launch gvim and enter
>
> :call netrw#BrowseX('http://github.com', 0)
>
> the window flickers instantaneously and nothing further happens.
>
> Performing the same action in terminal vim opens the URL in the
> browser as expected.
>
> It seems likely that this is an issue with how Gnome hands this off to
> Linux. But where do I begin to prove this?
>
Well, here's two issues:

1) netrw requires a trailing "/", so you need 'http://github.com/' . 
Didn't you get an error message at the bottom of the display?
2) unless you're hosting github.com on your personal pc, you probably
want "remote"

When I tried this with gx with the cursor atop the (corrected)
http://github.com/ string, I got the html source as expected; that's
with Scientific Linux.
So, as Christian Brabandt said, use netrw's debug mode and find out what
its doing on your system.  If doing like I did (with gx) works, then run
debugging with that, too, and compare.

Regards,
Chip Campbell

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8c1f491f-7d93-9810-f4c8-78e5e7396a7e%40drchip.org.

No comments: