[vim/vim] gx (URLOpen) fails for percent-encoded urls (Issue #20149)

6 views
Skip to first unread message

grr

unread,
May 6, 2026, 5:48:22 AM (yesterday) May 6
to vim/vim, Subscribed
grr created an issue (vim/vim#20149)

Steps to reproduce

  1. call user command :URLOpen https://example.com/path/magnet%3A%3Fxt%3Durn%3Abtih%3Ainfohash and it will silently fail
  2. whereas the url that is not encoded works: URLOpen https://example.com/path/magnet:

Expected behaviour

The encoded example should open. Calling open $encoded_url (which :URLOpen basically does) works on macos from the command-line. This might be related to #16252. Is it because the URL matching is failing here?

Version of Vim

9.2, including patches 1-321

Environment

Operating system: macOS
Terminal: iterm2
Value of $TERM: xterm-256color
Shell: bash

included in .vimrc:
let g:netrw_gx = ''

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20149@github.com>

Enno

unread,
May 6, 2026, 10:09:53 AM (yesterday) May 6
to vim/vim, Subscribed
Konfekt left a comment (vim/vim#20149)

Very likely the special shellescape() argument missing somewhere

> doc/builtin.txt (lines 10496-10501)
		The {special} argument adds additional escaping of keywords
		used in Vim commands.  When it is not omitted and a non-zero
		number or a non-empty String (|non-zero-arg|), then special
		items such as "!", "%", "#" and "<cword>" (as listed in
		|expand()|) will be preceded by a backslash.
		This backslash will be removed again by the |:!| command.

Could you bisect to the exact change to openPlugin.vim that broke it, such as a2dd40c?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20149/4388886942@github.com>

Reply all
Reply to author
Forward
0 new messages