-
Select texts with mouse, and Command-C to copy, nothing is copied. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think it is not a usual cases in vim. And I tried Reason
Also see neovim/neovim#14181 SolutionDo not create keymaps with ⌘. You can use |
Beta Was this translation helpful? Give feedback.
-
I don't create keymaps with ⌘, and I also use iTerm2 to ssh to remote server, Millions of thanks. |
Beta Was this translation helpful? Give feedback.
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.