Remapping of `ys` as in the vim.surround plugin doesn't work.
Describe the bug
When trying to use the following setting to remap * to ys which is the trigger for vim.surround plugin, it doesn't work as expected:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"*"
],
"after": [
"y",
"s"
]
},
]
To Reproduce
Use the aforementioned remapping. and type * in normal mode, then a aw" (i.e. type *aw" in normal mode).
Expected behavior
The word under the cursor be surrounded in ", which is the behaviour of typing ysaw" in normal mode.
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.27.3
- VSCode version: 1.89.1
- OS: Windows 11 23H2
You can try this
{
"before": ["*"],
"after": ["y", "s", "a"]
},
use *w"
You can try this
{ "before": ["*"], "after": ["y", "s", "a"] },use
*w"
it not working either, the editor enters insert mode the same way as just typing a, as if ys is not typed.
You can try this
{ "before": ["*"], "after": ["y", "s", "a"] },use
*w"it not working either, the editor enters insert mode the same way as just typing
a, as ifysis not typed.它也不起作用,编辑器进入插入模式的方式与仅键入a相同,就好像未键入ys一样。
You can try this
{ "before": ["*"], "after": ["y", "s", "a"] },use
*w"it not working either, the editor enters insert mode the same way as just typing
a, as ifysis not typed.它也不起作用,编辑器进入插入模式的方式与仅键入a相同,就好像未键入ys一样。
Thank you! I have confirmed that using this key binding in vim.normalModeKeyBindings does work as expected as you've pointed out; it's that using it in vim.normalModeKeyBindingsNonRecursive that doesn't work. Still I wonder why.