Vim-osc52
OSC 52 is a terminal sequence used to copy printed text into clipboard. It is useful in some environments, or when SSH'ing into some server and you need to copy back output from there into your local clipboard.
Your terminal must support OSC 52, of course (eg. mintty does).
Tmux is supported.
Installation
Use your favorite method:
- Pathogen - git clone https://github.com/fcpg/vim-osc52 ~/.vim/bundle/vim-osc52
- NeoBundle - NeoBundle 'fcpg/vim-osc52'
- Vundle - Plugin 'fcpg/vim-osc52'
- manual - copy all of the files into your ~/.vim directory
Usage
Eg.
xmap <F7> y:call SendViaOSC52(getreg('"'))<cr>
Acknowledgments
Code from Chromium, tweaked for personal use.
License
Check original code on Chromium.