On Mon, 6 Apr 2020 21:27:24 +0200
Manfred Lotz <ml_news@posteo.de> wrote:
> On Mon, 6 Apr 2020 20:36:10 +0200
> Manfred Lotz <ml_news@posteo.de> wrote:
>
> > On Sun, 5 Apr 2020 19:40:01 -0700 (PDT)
> > Tom M <7tommm@gmail.com> wrote:
> >
> > > On Sunday, April 5, 2020 at 10:48:08 AM UTC+2, Manfred Lotz
> > > wrote:
> > > >
> > > > Hi all,
> > > > I have Fedora 31 and Fedora 32. Happens on both systems.
> > > >
> > > > I want to open an URL in my browser and type `gx` when the
> > > > cursor is over an URL in vim resp. gvim
> > > >
> > > >
> > > > Doing this for example in an markdown document it works fine for
> > > > vim but nothing happens when doing the same in gvim.
> > > >
> > > > When debugging (i.e. starting vim resp. gvim with `-V9vim.log`)
> > > > I see:
> > > >
> > > > line 2: sourcing "/usr/share/vim/vim82/autoload/netrw.vim"
> > > > finished sourcing /usr/share/vim/vim82/autoload/netrw.vim
> > > > continuing in <SNR>67_VersionAwareNetrwBrowseX
> > > > :!setsid xdg-open
> > > > 'https://realpython.com/python-data-types/'>/dev/null
> > > > 2>&1
> > > >
> > > > Calling shell to execute: "setsid xdg-open
> > > > 'https://realpython.com/python-data-types/'>/dev/null 2>&1"
> > > >
> > > >
> > > > Any idea how to find out why gvim behaves differently?
> > > >
> > > >
> > > > --
> > > > Manfred
> > > >
> > >
> > > A solution (or workaround?) to (the root cause of) this issue has
> > > been posted in this group a few weeks back in this discussion:
> > > "netrw#BrowseX fails when invoked from gvim on Ubuntu"
> > > https://groups.google.com/forum/#!msg/vim_use/cTo_VUtA250/sEgu2wOHAwAJ
> > >
> > > The trick is to use:
> > > :!xdg-open http://www.vim.org &
> > >
> > > instead of:
> > > :!xdg-open http://www.vim.org
> > >
> > > Note the ampersand at the end of the first command. See the
> > > original discussion for more details.
> > >
> >
> > Didn't help. Same as before nothing happens when typing gx.
> >
>
> I forgot to mention that also when typing
>
> :!xdg-open http://www.vim.org &
>
>
> nothing happened.
>
Here
https://superuser.com/questions/386646/xdg-open-url-doesnt-open-the-website-in-my-default-browser
I found an idea to try:
!xdg-open http://www.vim.org; sleep 2
This works in gvim.
Please note that !xdg-open http://www.vim.org& doesn't.
So, I would say it is definitely not a netrw problem.
--
Manfred
--
--
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/20200407224430.424e24e5%40hogwart.
Tuesday, April 7, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment