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:
- Open ttyd terminal, login into the remote system
- Open some text file in vim
- Select some text with the mouse
- Press 'i' in vim to enter the typing mode
- Press Ctrl-Shift-V to paste into vim
- 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
Source: tsl0922/ttyd