[vim/vim] vim9 script and legacy does not handle expression mappings (Issue #20176)

2 views
Skip to first unread message

Christian Brabandt

unread,
May 9, 2026, 12:26:27 PM (2 days ago) May 9
to vim/vim, Subscribed
chrisbra created an issue (vim/vim#20176)

Steps to reproduce

I noticed this while reviewing #20152

Source this script:

vim9script

:legacy inoremap <expr> <F2> "hello " . "world"

Go to insert mode and press <f2>.
It errors out with:

E488: Trailing characters: . "world"

Expected behaviour

should input "hello world". It works when using .. for the concatenation.

Version of Vim

9.2.0461

Environment

linux, putty, xterm-256color, zsh

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/20176@github.com>

Christian Brabandt

unread,
4:19 AM (8 hours ago) 4:19 AM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20176)

fixed by #20177


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/20176/4418767012@github.com>

Christian Brabandt

unread,
4:19 AM (8 hours ago) 4:19 AM
to vim/vim, Subscribed

Closed #20176 as completed.


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/issue/20176/issue_event/25372212829@github.com>

Reply all
Reply to author
Forward
0 new messages