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.
--
--
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/b222574e-477e-446a-b8b7-8382f94dfaa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment