I used to use chromium before and then, I could press gx
on an url and vim would open it in a new tab if a chromium instance was already running, otherwise create a new window.
But in firefox, when I press gx
on an url, vim opens a new firefox instance that is not even signed into my firefox account.
How do I change the behavior of gx
so that it opens a new tab of an already opened firefox instance?
N.B. The output of lsb_release -a
is as follows.
enan@elariel:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
netrw#BrowseX
in$VIMRUNTIME/autoload/netrw.vim
(long function...scroll down a ways). Looks like xdgopen is used in some cases. Anyways, you might want to poke around there yourself...see if you see anything off.xdg-open
. What browser this finally opens depends on the default browser for your desktop environment. On XFCE, this uses e.g. exo-open. I suppose you have to configure it using some desktop files. (on my system, it opens URLs in a new tab of firefox).exo-open "https://google.com"
from my terminal. It opened in a new-tab. Butvim
doesn't do that. Something else is wrong. I'm looking throughnetrw.vim
and its help docs(huge!) to see if I can find something. Will report back if I do.