Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!?!?!

like image 545
Charlie Parker Avatar asked Jul 12 '26 14:07

Charlie Parker


1 Answers

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

like image 87
Charlie Parker Avatar answered Jul 15 '26 06:07

Charlie Parker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!