Hi everybody, I have these two mappings to work with clipboard selection (+
register in nvim), and I’m puzzled by the fact that I specified <C-V>
for pasting in insert mode and it correctly let me use the key combination CTRL-SHIFT-v (notice that V is in uppercase when setting the mapping).
However I have <C-C>
for copying but it works with CTRL-c, and if I press CTRL-SHIFT-c, it doesn’t do anything and just keeps me in visual selection mode.
It’s not a big deal, but it breaks homogeneity for me.
-- copy, visual mode
vim.keymap.set('v', '<C-C>', '"+y')
-- paste, insert mode
vim.keymap.set('i', '<C-V>', '"+gP')
I know modifier keys can be in lower or uppercase, but what is Neovim considering for the {rhs}?
Also, if I press just CTRL-v for pasting it prints the {rhs} pasting command, which is "+gP
, but as text instead of acting as command.