]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(comment): add <Plug>-mappings
authorMark Woods <mwoods.online.ie@gmail.com>
Sun, 22 Jun 2025 18:16:29 +0000 (20:16 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 22 Jun 2025 18:20:34 +0000 (20:20 +0200)
commit1cbe3e89c903f7a37abec59463b5e9b2a4dff009
treea3852a50b2dfabbac09a8713d0b65b6aff1b9b0e
parentc877057e8181783000c7050a955b42f4ccf365e1
runtime(comment): add <Plug>-mappings

vim9script <expr> mappings relying on imports cannot be evaluated
outside of the script file with the imports, so do not work with plugins
like vim-which-key, which evaluates <expr> mappings to apply them.

Using <Plug> mappings is one way to address this, and has the added
benefit of reading like a description for users finding the mappings.

fixes: #17523
closes: #17563

Signed-off-by: Mark Woods <mwoods.online.ie@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/pack/dist/opt/comment/doc/comment.txt
runtime/pack/dist/opt/comment/doc/tags
runtime/pack/dist/opt/comment/plugin/comment.vim