On Tuesday, July 9, 2019 at 11:09:16 AM UTC-4, Enno wrote:
> Le mardi 9 juillet 2019 10:32:52 UTC-3, Tony Mechelynck a écrit :
> > On Tue, Jul 9, 2019 at 2:56 PM Mathieu Roux wrote:
> > >
> > > Hello,
> > >
> > > Is it possible to follow a link with vim? for exemple, if my cursor is
> > > on https://fr.wikipedia.org/wiki/Vim
> > > i want to use my browser to go to this website.
> > >
> > > By the same way, i can open a file with "gf" if my cursor is on the
> > > file's name. But i don't know how to follow a link.
> > >
> > > Best regards,
> > > Mathieu
> >
> > I don't know if it is possible, but I know where to find the answer:
> >
> > :help netrw
> >
> >
> > Best regards,
> > Tony.
>
> Thus, if elinks is installed, then typing `gf` will open the link as text in Vim.
> Typing `gx` will open it with the program attached to links in the OS. On Linux, if one does not use Gnome or KDE desktop environment, then adding
>
> let g:netrw_browsex_viewer = "xdg-open"
>
> to the vimrc seems necessary.
Both `gf` and `gx` worked for me as described using Debian/i3 (without having to set `g:netrw_browsex_viewer`).
Thanks for sharing this simple solution, Enno!
PRD
--
--
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/ff2d8365-73a3-49fe-a6fc-3c2bb5225afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, July 9, 2019
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment