rclasen / vim-osc52

Copy text via OSC 52 from Vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 (e.g. mintty does).

Tmux is supported.

Installation

Use your favorite method:

Usage

Copy to system clipboard: vmap <C-c> y:Oscyank<cr> xmap <F7> y:Oscyank<cr>

Acknowledgments

Code from Chromium, tweaked for personal use.

License

Check original code on Chromium.

About

Copy text via OSC 52 from Vim.


Languages

Language:Vim Script 100.0%