This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Share clipboards between vim and tmux without xsel or xclip (which require X and | |
" X forwarding with SSH) and without changing tmux shortcuts. Requires only tail. | |
" | |
" Great for an ssh session to you linode or droplet. | |
" | |
" Uses z buffer in vim and writes output to ~/.clipboard and then to tmux's paste | |
" buffer, and reads it back in cleanly for putting (puddin'). | |
" | |
" NOTE: tmux has an undocumented command limit! https://github.com/tmux/tmux/issues/254 | |
" this means if you mean to copy larger bits of code (entire functions) tmux will |