Skip to content

netrw's "gx" functionality doesn't open URLs anymore in macOS #4738

@ychin

Description

@ychin

Describe the bug
The latest Vim has updated to a newer version of netrw, which seems to have broken the gx functionality. In the past, positioning the cursor on an URL and press gx would open the URL in a web browser (using the open command). The updated netrw would instead try to curl it, which seems wrong.

To Reproduce
Detailed steps to reproduce the behavior:

  1. Run vim --clean (or gvim --clean, etc.) in macOS.
  2. Enter insert mode and type "https://www.vim.org"
  3. Go to normal mode and type gx.
  4. Observe that Vim doesn't open the URL in a web browser.

Expected behavior
Vim should open the URL in a web browser.

Screenshots
If applicable, copy/paste the text or add screenshots to help explain your problem.

Environment (please complete the following information):

  • Vim version [e.g. 8.1.1755]
  • OS: macOS 10.14 (haven't tested others yet)

Additional context
Bug was introduced in 85850f3. Originally I got this bug filed against MacVim at macvim-dev/macvim#925 so cross-referencing here.

This is a netrw bug so I'm not sure if this is the correct place to post it, but with the ownership question I'm not 100% sure who owns netrw now and where I should file a bug for it to be fixed and updated to Vim's bundled plugin.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions