#1492·ttyd

Selecting text doesn't copy it into the vim's clipboard buffer in Chrome on MacOS

Author: yurivictCreated Feb 27, 2026Updated Jun 22, 2026
Labelsbug

Describe the bug

The problem is in Chrome on MacOS: when the text is selected with a mouse it gets copied into the MacOS clipboard, but not into the vim's clipboard buffer in the terminal.

The behavior is different in Edge on Windows where the text selection is copied into both Windows clipboard and into vim's clipboard.

Firefox and Chromium on FreeBSD also correctly copy the text into both system clipboard and vim's clipboard.

To Reproduce Steps to reproduce the behavior:

  1. Open ttyd terminal, login into the remote system
  2. Open some text file in vim
  3. Select some text with the mouse
  4. Press 'i' in vim to enter the typing mode
  5. Press Ctrl-Shift-V to paste into vim
  6. Observe that paste doesn't work

Expected behavior Paste should work in vim when the text was selected in the ttyd terminal.

Screenshots n/a

Environment:

  • OS: macOS 14.6.1
  • Browser: Chrome

Additional context n/a