fcpg / vim-osc52 Goto Github PK
View Code? Open in Web Editor NEWCopy text via OSC 52 from Vim.
Copy text via OSC 52 from Vim.
Apologies if this is a very dumb question, I'm only just now starting to get my feet wet with this. Also, thanks for making this plugin -- it works great and solves a big painpoint I had.
Is it possible to use this technique to paste as well? I'd like to be able to have <Leader>p
paste from my local system clipboard the same way that <Leader>y
copies to my system clipboard. E.g., making this work:
vnoremap <Leader>y "+y <bar> :call SendViaOSC52(getreg('"'))<CR>
nnoremap <Leader>p "+p
If this is possible and you can point me in the right direction, I'd be happy to try to get it working.
Thanks for this awesome plugin! After trying X11-forwarding, and other attempts at OSC52, this is the first that seems to really work well across different platforms.
The only question I have concerns the way it causes my terminal to flicker. I had hoped to include it in every yank, but that's not viable because it causes a big flicker each time. Not a massive deal, but if there's an easy fix then that would be appreciated.
Fails for me if my local machine is running tmux... Is it expected?
Hello,
I'd like very much to use OSC52 in my workflow unfortunately I cannot get your plugin to work. When running the command in neovim v4.3 my clipboard is not updated at all. I'm testing it in the Windows Terminal, with WSL1 running Ubuntu 20.04. I checked that my terminal supports OSC52 with Chromium's script and indeed it works fine.
Here's a minimal config:
call plug#begin()
Plug 'fcpg/vim-osc52'
call plug#end()
vmap <leader>c y:Oscyank<CR>
And here's my neovim version:
$ nvim -v
NVIM v0.4.3
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-gOb7vg/neovim-0.4.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-gOb7vg/neovim-0.4.3/build/config -I/build/neovim-gOb7vg/neovim-0.4.3/src -I/usr/include -I/usr/include/lua5.1 -I/build/neovim-gOb7vg/neovim-0.4.3/build/src/nvim/auto -I/build/neovim-gOb7vg/neovim-0.4.3/build/include
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
Any idea what could be wrong? Or how I can debug that? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.