Menu

Opening links from gvim on linux

Viki
2013-10-06
2013-10-16
  • Darren Kessner

    Darren Kessner - 2013-10-06

    Hi Tom,

    I'm trying to follow links (\vf) from gvim on a Linux (Ubuntu/XFCE) system. \vf works from terminal vim, but not currently from gvim.

    g:vikiOpenFileWith_ANY shows the command with xdg-open. I think the issue has to do with needing to run the shell command in the background using '&'. For example, from gvim, the following command will open the browser:
    :!xdg-open http://google.com &
    But this won't work without the trailing '&'.

    However, I don't know vimscript well enough to figure out how to make the change correctly to your plugin.

    Any help would be appreciated!

    Darren

     
    • Tom Link

      Tom Link - 2013-10-16

      :!xdg-open http://google.com &
      But this won't work without the trailing '&'.

      It used to work with ubuntu 10.04. Anyway, I added "&" in the version at
      github. It shouldn't do any harm, I hope.

       

Log in to post a comment.