Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Mac <Cmd + c> to not exit insert mode for normal mode visual studio vim

In visual studio code on my Macbook Pro, I have installed the basic vim mode extension. When I am in insert mode, and I click <Cmd + c> (to copy text in insert mode, I am aware of yank in normal mode), the cursor exits insert mode and enters normal mode. How do I configure visual studio code to not do this?

like image 760
Marquistador Avatar asked Oct 23 '25 19:10

Marquistador


1 Answers

Add the following line to your settings.json file (note: <C-c> for windows, <D-c> for Mac since D maps to Cmd):

"vim.handleKeys":{
    "<D-c>": false
},
like image 186
Marquistador Avatar answered Oct 26 '25 07:10

Marquistador



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!