[英]VS Code Vim Plugin: In command mode, the s and S key commands don't do anything
I've installed vscodevim.vim
plugin ( https://marketplace.visualstudio.com/items?itemName=vscodevim.vim ) to Visual Studio Code running on OS X. I have the setting.json
that I've pasted below. 我已将
vscodevim.vim
插件( https://marketplace.visualstudio.com/items?itemName=vscodevim.vim )安装到在OS X上运行的Visual Studio Code中。下面粘贴了setting.json
。
For the most part everything is working. 在大多数情况下,一切都在工作。 However, in command mode the
s
and S
key commands don't do anything. 但是,在命令模式下,
s
和S
键命令不会执行任何操作。 I expect that when I press s
in command mode, the character under my cursor should be deleted and then I should be in insert mode at the cursor location. 我希望当我在命令模式下按
s
时,光标下的字符应被删除,然后在光标位置处处于插入模式。 But currently it's not doing anything. 但是目前它什么也没做。
I don't see anything in my settings that should cause this. 我的设置中没有任何应引起这种情况的内容。 Does anyone know what the issue might be?
有人知道这个问题可能是什么吗?
settings.json settings.json
{
"vim.easymotion": true,
"vim.sneak": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "d"],
"after": ["d", "d"]
},
{
"before": ["<C-n>"],
"commands": [":nohl"]
}
],
"vim.leader": "<space>",
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false
},
"window.zoomLevel": 0,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.dragAndDrop": false
}
实际上是"vim.sneak": true
是造成这种情况的原因,因为s和S被重新映射。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.