Reputation: 5528
I've gotten vim to copy to the system clipboard (xsel) by pressing the following keys: "+y
. Now I want to map that to the following key combiation: Ctrl+Shift+c
, since that's what termite, the terminal I use, has set as defaults, and I want to keep some consistency.
This isn't working, and I don't understand why.
vnoremap <C-S-c> "+y
I know I can use some of the alternatives from the vim wiki, but I want to understand what I'm doing wrong here.
Upvotes: 1
Views: 319
Reputation: 195269
You didn't do anything wrong. your <c-s-c>
mapping doesn't work in your terminal, because in terminal vim. the c-c
and c-s-c
have same keycodes. You can prove it by typing <c-v><c-c>
and <c-v><c-s-c>
in INSERT mode.
You mentioned vim wiki, I am not sure if you have read this wiki entry. It should help you.
Upvotes: 1