Loading ...
Sorry, an error occurred while loading the content.
 

Re: Launch a browser from url in text

Expand Messages
  • Tom Purl
    Check out the utl plugin: * http://www.vim.org/scripts/script.php?script_id=293 It may not be exactly what you want, but it s very close. HTH! Tom Purl
    Message 1 of 3 , Jul 1, 2006
      Check out the utl plugin:

      * http://www.vim.org/scripts/script.php?script_id=293

      It may not be exactly what you want, but it's very close.

      HTH!

      Tom Purl

      On Sun, Jul 02, 2006 at 04:19:10AM +0200, Cesar Romani wrote:
      > Is it possible to doubleclick a highlighted URL in a text and thus launch a
      > browser, f.e. internet explorer or firefox?
      > The command "gf" allows to open a file under a cursor. Isn't there any
      > similar for URLS?
      > Many thanks in advance,
      >
      > Andalou
      >
    • Wolfgang Schmidt
      Hi, you could use the following mappings (put them into your _vimrc): Launch firefox with URL under cursor nmap ,ff :update :!start C: Programme Mozilla
      Message 2 of 3 , Jul 3, 2006
        Hi,

        you could use the following mappings (put them into your _vimrc):


        "Launch firefox with URL under cursor
        nmap ,ff :update<CR>:!start "C:\Programme\Mozilla Firefox\firefox.exe"
        <cWORD><CR>

        "Launch Internet Explrorer with URL under cursor
        nmap ,ie :update<CR>:!start "C:\Programme\Internet
        Explorer\IEXPLORE.EXE" <cWORD><CR>


        Then you'll have to move the cursor over the URL and type ,ff to launch
        firefox or ,ie to launch IE.

        Cheers,

        Wolfgang

        P.S. I found this tip on

        http://www.rayninfo.co.uk/vimtips.html

        which contains many useful tips on Vim.


        Cesar Romani wrote:
        > Is it possible to doubleclick a highlighted URL in a text and thus launch a
        > browser, f.e. internet explorer or firefox?
        > The command "gf" allows to open a file under a cursor. Isn't there any
        > similar for URLS?
        > Many thanks in advance,
        >
        > Andalou
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.