fcpg / vim-osc52

Copy text via OSC 52 from Vim.
74 stars 7 forks source link

Clipboard not updated in Neovim #6

Open ojroques opened 4 years ago

ojroques commented 4 years ago

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 team+vim@tracker.debian.org

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 commented 4 years ago

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.