Skip to content

BrowseX too many arguments (only one argument) #880

@rpuntaie

Description

@rpuntaie

In a Markdown file with mapping gx.

Error detected while processing function <SNR>265_OpenUrlUnderCursor[3]..<SNR>265_VersionAwareNetrwBrowseX:
line    2:
E118: Too many arguments for function: netrw#BrowseX
E475: Invalid argument: messages

Markdown_OpenUrlUnderCursor:
I removed the second argument to BrowseX, and problem gone for me.

function! s:VersionAwareNetrwBrowseX(url)

https://github.com/saccarosium/netrw.vim/blob/215cafe7c59bcddcd09a44c89d916c5407e179f7/autoload/netrw.vim#L4127

But it probably depends on the Netrw version.

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Nov 12 2025 17:04:01)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions