Skip to content

Instantly share code, notes, and snippets.

@burningTyger
Created August 13, 2016 11:32
Show Gist options
  • Save burningTyger/35b33cf6e0047f120c85333b416b1690 to your computer and use it in GitHub Desktop.
Save burningTyger/35b33cf6e0047f120c85333b416b1690 to your computer and use it in GitHub Desktop.
Getting system clipboard access in vim in tmux in ssh
If you'd like to use `"*y` and `"*p` in neovim you have to make sure it works across the stack.
These steps are necessary:
* Have xsel installed
* enable `X11Forward` in your remote sshd.conf
* disable `X11Localhost` in the same file
Then restart your ssh connction with the -Y flag and make sure to restart tmux otherwise you might get errors because $DISPLAY might not yet be set.
@RemLampa
Copy link

OMG. This one is a lifesaver. Thankssss!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment