Skip to content

Yank from remote ssh session to local clipboard via OSC 52

License

Notifications You must be signed in to change notification settings

kuntau/vim-osc52

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

OSC52.vim for Vim and Neovim

This script can be used to send an arbitrary string to the terminal clipboard using the OSC 52 escape sequence, as specified in http://invisible-island.net/xterm/ctlseqs/ctlseqs.html, section "Operating System Controls", Ps => 52.

Install

vim-plug

Plug 'kuntau/vim-osc52'

Mapping

Edit your .vimrc to include this code

vmap <C-c> <Plug>(YankOSC52)

This will map Ctrl+C to copy. You can now select text in vim using the visual mark mode or the mouse, and press Ctrl+C to copy it to the clipboard.

About

Yank from remote ssh session to local clipboard via OSC 52

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published