dotfiles/vim/.vim/plugin/yank.vim

13 lines
399 B
VimL
Raw Normal View History

2023-11-16 20:08:26 +01:00
" function Osc52Yank()
" let buffer=system('base64', @0)
" let buffer=substitute(buffer, "\n", "", "")
" let buffer='\e]52;c;'.buffer.'\e\'
" silent execute "!echo -ne".shellescape(buffer).
" \ " > ".shellescape('/dev/tty')
" endfunction
" augroup Yank
" autocmd!
" autocmd TextYankPost * if v:event.operator ==# 'y' | call Osc52Yank() | endif
" augroup END