Windows – Map Ctrl-Shift-V to an action in vi

keyboard shortcutsvimwindows

I want to be able to paste from the clipboard on gVim on Windows using Ctrl-Shift-V, just like in Terminator.

However, if I put this on my .vimrc

 imap <C-S-V> "+gP

The shortcut works without shift, meaning I can paste text with a simple Ctrl-V. This overrides the already existing capability, is there a way to paste only with Ctrl-Shift-V?

Best Answer

Vim cannot see the difference between <C-V>, <C-v>, and <C-S-V>.

If you want case sensitive mappings, you need to use unmodified characters, or the Alt key (e.g. <A-v> or <M-v> is different from <A-V> or <M-V>).

Related Question