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

Re: Launch a browser from url in text

Expand Messages
  • 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 1 of 3 , Jul 3, 2006
    • 0 Attachment
      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.