SSH + tmux + Neovim + OSC 52 Clipboard Guide
Problem
When working remotely via SSH inside tmux with Neovim, the system clipboard doesn’t work. You yank text in Neovim but can’t paste it on your local machine with Ctrl+V.
How OSC 52 Works
OSC 52 is a terminal escape sequence that tells your local terminal emulator to put text into the system clipboard. The data flow is:
Neovim yank β OSC 52 escape sequence β tmux β SSH β local terminal β system clipboardEach layer must allow the sequence to pass through untouched.