Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": ["<C-j>"],
"after": ["m", "m"]
}
],
Expected behavior
input characters: "mm"
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Have you read through the readme section regarding ctrl keys?
@expelledboy
Of course!
This is my setting:
"vim.useCtrlKeys": true
"vim.handleKeys": {
"<C-j>": true
}
Any Problem?
I am new the project, was just in the back of my mind when I read your issue :)
We don't remap this ctrl+ combination
{
"key": "ctrl+j",
"command": "xxxxxxx",
"when": "editorTextFocus && vim.active && vim.mode == 'Insert' && !inDebugRepl"
}
Duplicate of #757
@xconverge What about I just want to remap to some keypress, which a vscode command can't do it.Such as the example above inserting two 'm' character, none command can do the same, right?
{
"key": "ctrl+j",
"command": "type",
"args": { "text": "mm" },
"when": "editorTextFocus"
}
See the example here:
https://code.visualstudio.com/docs/getstarted/keybindings#_command-arguments
Wow, perfect! Although it is not remap key, this is enough and satisfy my needs.Power command and I am ignorant.
Yea a LOT can be done with the native keybindings. You can also add something like this to the when clause if you want
&& vim.mode == 'Insert'