Visual studio code VSCodeVim扩展;复杂的;用参数重新映射
正在为VSCode使用VSCodeVim扩展。。。 我想创建一个键映射,当从正常模式插入单个字符时,它将为我节省一次击键 通常情况下,插入一个带有以下内容的字符:Visual studio code VSCodeVim扩展;复杂的;用参数重新映射,visual-studio-code,key-bindings,remap,vscodevim,Visual Studio Code,Key Bindings,Remap,Vscodevim,正在为VSCode使用VSCodeVim扩展。。。 我想创建一个键映射,当从正常模式插入单个字符时,它将为我节省一次击键 通常情况下,插入一个带有以下内容的字符: ix<escape> 其中x是要插入的任何字符,k是我为该功能映射的键。注意:我没有将hjkl键与它们的默认绑定一起使用,因此可以使用“k” 目前可能吗 这是我在settings.json文件中的位置: "vim.normalModeKeyBindingsNonRecursive": [
ix<escape>
其中x是要插入的任何字符,k是我为该功能映射的键。注意:我没有将hjkl键与它们的默认绑定一起使用,因此可以使用“k”
目前可能吗
这是我在settings.json文件中的位置:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"k", // Bind the new functionality to the "k" key.
...??... // Somehow, effectively take an argument of
// any second character.
],
"after": [
"i", // Go to insert mode.
...??..., // insert the second character typed above.
"<Esc>" // Return to normal mode.
]
},
]
“vim.NormalModeKeyBindings非递归”:[
{
“之前”:[
“k”,//将新功能绑定到“k”键。
…??…//不知何故,有效地接受了
//任何第二个字符。
],
“之后”:[
“i”,//转到插入模式。
…??…,//插入上面键入的第二个字符。
“”//返回正常模式。
]
},
]
我在网上找不到任何具有这种复杂程度的绑定。
谢谢你的帮助
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"k", // Bind the new functionality to the "k" key.
...??... // Somehow, effectively take an argument of
// any second character.
],
"after": [
"i", // Go to insert mode.
...??..., // insert the second character typed above.
"<Esc>" // Return to normal mode.
]
},
]