0

On a text file with a hyperlink (http://url/) if I hover the mouse over the hyperlink and click on it, it is opened on chrome. How can I change the browser that vim decides to use when following hyperlinks, so that I can change the default web browser to firefox?

  • @Tumbler41 This is to open the file I am editing on a web browser, but not in order to open a url address that is part of the text of my file. Say my file is : "[text] example.com [more text]" At the moment, if I click on http://example.com, vim will open that url on chrome. I want vim to open it on firefox. – capstain Sep 19 '17 at 16:38
  • You'll probably have to change your default browser on your system. – Tumbler41 Sep 19 '17 at 16:42
  • 1
    I suspect Vim is not involved and the terminal is handling the click event. You can try gx in normal mode to open a file or an URL in your browser (via the native netrw plugin). – LEI Sep 19 '17 at 16:49
  • 1
    I'm voting to close this question as off-topic because (as you've figured out) it's not actually anything to do with Vim. – Rich Sep 20 '17 at 10:28
1

As LEI commented, the problem resided on my terminal, and it didn't have anything to do with vim. Changing the corresponding parameters of my terminal fixed the issue.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.