]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(openPlugin): add <Plug>-mappings
authorMark Woods <mwoods.online.ie@gmail.com>
Sun, 22 Jun 2025 18:12:16 +0000 (20:12 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 22 Jun 2025 18:20:23 +0000 (20:20 +0200)
commitc877057e8181783000c7050a955b42f4ccf365e1
tree56e2945af998004b770241ad0581be35daf2c849
parent46b02602d6a8b1c62e34cdc05d744812479f4ce3
runtime(openPlugin): add <Plug>-mappings

vim9script <scriptcmd> 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 applies the mappings using feedkeys().

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

related: #17563

Signed-off-by: Mark Woods <mwoods.online.ie@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/plugin/openPlugin.vim