Clipboard integration by Operating System Controls from Vim
- Clip selected text.
- Clip text in the register.
- Support multibyte characters.
For dein.vim.
call dein#add('greymd/oscyank.vim')
- Step1: Select text.
- Step2: Type
:Oscyank
which displays'<,'>Oscyank
. - Step3: Selected text will be stored to your clipboard through OSC.
- Step1: Yank text.
- Step2: Contents in the register is stored to your clipboard through OSC by executing
:OscyankRegister
.
This plugin supports not only normal terminal but also following terminal multiplexers.
- tmux
- screen
" set spece key as a Leader
let mapleader = "\<Space>"
noremap <leader>y :Oscyank<cr>
Select something and type <space> + y
.
MIT