[vim/vim] Add exists_info() for the definition of a builtin function or v: variable (PR #21293)

10 views
Skip to first unread message

h_east

unread,
Sep 12, 2026, 3:37:59 PM (9 days ago) Sep 12
to vim/vim, Subscribed
Problem:  There is no way to get the definition of a builtin function
    (the number of arguments, their types, the return type) or of a v:
    variable (its type, whether it is read-only) from Vim script.  A
    language server has to parse the help text for it.
Solution: Add exists_info({expr}) which takes the notation of exists()
    and returns a Dict with the definition: "*funcname" or "?funcname"
    for a builtin function, "v:name" for a predefined Vim variable.
    The other notations are not supported yet and return an empty Dict.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/21293

Commit Summary

  • 21398cb Add exists_info() for the definition of a builtin function or v: variable

File Changes

(7 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21293@github.com>

Christian Brabandt

unread,
Sep 16, 2026, 3:44:22 PM (5 days ago) Sep 16
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#21293)

Is this good now? Shall I merge each commit separately or you think a single squashed commit is okay?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21293/c5703502247@github.com>

h_east

unread,
Sep 16, 2026, 3:59:51 PM (5 days ago) Sep 16
to vim/vim, Subscribed
h-east left a comment (vim/vim#21293)

Is this good now? Shall I merge each commit separately or you think a single squashed commit is okay?

Yeah. I've squashed the commits. I also updated the PR title and description.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21293/c5703686614@github.com>

h_east

unread,
Sep 16, 2026, 4:35:17 PM (5 days ago) Sep 16
to vim/vim, Subscribed
h-east left a comment (vim/vim#21293)

CI is green. Ready for merge.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21293/c5704118964@github.com>

Reply all
Reply to author
Forward
0 new messages