Skip to content

vim9script, functions calls without :call #78

Open

Description

@dezza

Describe the bug
Using a function as intended in vim9script, without :call will result in E492: Not an editor command:

To Reproduce
Steps to reproduce the behavior:

vim9script
def Foo():
  echom "done"
enddef
foo() # E92: Not an editor command: foo

Expected behavior
Resolving vim9 functions.

Activity

  1. chemzqm commented on Aug 13, 2022

    @chemzqm

    @iamcco please consider adding support for vim9.

  2. iamcco commented on Oct 11, 2022

    @iamcco
    Owner

    @iamcco please consider adding support for vim9.

    It need vim-vimlparser to support vim9.

  3. igbanam commented on Oct 20, 2022

    @igbanam

    How do I setup the support for vim9 with vim-vimlparser?

    Screen.Recording.2022-10-20.at.09.42.17.mov
  4. igbanam commented on Oct 20, 2022

    @igbanam

    For context, I'm using vim-language-server through yegappan/lsp

  5. iamcco commented on Nov 12, 2022

    @iamcco
    Owner

    How do I setup the support for vim9 with vim-vimlparser?

    What I mean is vim-language-server depend on vim-vimlparser to support vim9 and by now vim-vimlparser does not support vim9.

  6. added a commit that references this issue on Mar 15, 2026
  7. jclsn commented on May 13, 2026

    @jclsn

    @iamcco There seems to be a PR now. The vimlparser maintainers haven't looked at it still. Maybe want to give the patched vimlparser.js a try?

    vim-jp/vim-vimlparser#205

  8. sideshowbarker commented on May 15, 2026

    @sideshowbarker

    @iamcco There seems to be a PR now. The vimlparser maintainers haven't looked at it still. Maybe want to give the patched vimlparser.js a try?

    vim-jp/vim-vimlparser#205

    The changes from that PR have now been merged into the vim-vimlparser sources: vim-jp/vim-vimlparser@075a4fa.

  9. Aster89 commented on Aug 27, 2026

    @Aster89

    Any news, @iamcco ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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