Skip to content

Mouse copy looks not work #19

Answered by adoyle-h
x2c3z4 asked this question in Q&A
Discussion options

You must be logged in to vote

I think it is not a usual cases in vim. And I tried <D-c> and <cmd>c, neither works. The ⌘ key does not trigger.

Reason

<⌘-...> shortcuts never send key sequences to vim and nvim. Because these shortcuts are OS-level or App-level.
For example, I use iTerm2 as a pseudo terminal. The <⌘-c> is captured by iTerm2.

Also see neovim/neovim#14181

Solution

Do not create keymaps with ⌘. You can use <leader>y to copy current line into system clipboard. And <leader>P to paste from system clipboard. Please see the keymaps.md#Copy and Paste.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by x2c3z4
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #16 on July 01, 2023 10:47.