vim-osc52 icon indicating copy to clipboard operation
vim-osc52 copied to clipboard

Clipboard not updated in Neovim

Open ojroques opened this issue 5 years ago • 1 comments

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!

ojroques avatar Nov 24 '20 20:11 ojroques

It seems this is linked to this issue: https://github.com/neovim/neovim/issues/8450. I've added one of the workaround suggested there and it works now.

Edit: It seems this project is inactive at the moment. I've release my own plugin to integrate OSC52 into Vim with support for Neovim and Windows. Check it out: vim-oscyank.

ojroques avatar Nov 24 '20 21:11 ojroques