How does one stop VS code from going into normal mode in Vim when doing normal copy `Cmd + c`?

whenever I select code and then do Cmd + c (copy) it then goes by itself to normal mode in vim. So:

  1. How do I stop VS code from doing that?
  2. Why is it doing that?

My default keybinding for copy paste has (go to command pellet type keybinding go to default keybindings):

{ "key": "cmd+c",                 "command": "execCopy" },

probably this: { "key": "cmd+c", "command": "extension.vim_cmd+c", "when": "editorTextFocus && vim.active && vim.overrideCopy && vim.use<D-c> && !inDebugRepl" }, except it doesn't let me edit the file!?!?!


without seeing your exact extension configuration and system info, it's hard to say with certainty, but you may have an extension conflicting with or overriding the default behavior.

open the command palette and type keybindings and choose the command to edit keybindings. you can search for cmd+c to see if anything else is using it, and in what context. alternatively, you can do this directly from your keybindings.json file.

also, for the sake of diagnostic, you can always launch vs code with no extensions enabled just to see if it is indeed an extension problem. if so, you can selectively enable extensions, and when you find the right one, you can look within its internal settings


I feel the answers are longer than need.

Follow these steps:

  1. Command palette Cmd+shift+P
  2. Type Open Keyboard Shortcuts (not the Json one)
  3. Nice looking file in vscode comes up like pinocchio said (see attached image)
  4. Search cmd+c
  5. Go the the row that has in it's column extension.vim_cmd+c
  6. Click it and then hit backspace (or right click select remove).

Done.


For sake of context see Snippet:

enter image description here