I use vim in the terminal as well as gvim. My issue is that in the terminal gx opens urls without a problem but in gVim nothing happens.
Has anyone else experienced this issue and found a fix?
I'm using gvim 7.4 with patches 1-52.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI use vim in the terminal as well as gvim. My issue is that in the terminal gx opens urls without a problem but in gVim nothing happens.
Has anyone else experienced this issue and found a fix?
I'm using gvim 7.4 with patches 1-52.
I just tried this on a debian with XFCE desktop environment and I can reproduce the issue. Turns out, that gvim calls xdg-open URL to open the URL, but unfortunately, this did not return anything or display an error message.
However, I could fix this, by using setsid xdg-open
which you need to set for the g:netrw
:let g:netrw_browsex_viewer="setsid xdg-open"
Bug opened with XFCE
setsid
it pulls the html doc into the gvim window. When I use let g:netrw_browsex_viewer= "gnome-open"
just a screen flicker no browser. When I use gnome-open
from bash works fine, so what's the problem with Ubuntu gnome?
I'm on OS X and running the following command in vim worked for me:
let g:netrw_browser_viewer='open'