Neovim-qt: Unable to paste to different programs in Windows 10

Created on 5 Mar 2018  路  7Comments  路  Source: equalsraf/neovim-qt

I press "*y, and paste in NotePad, the pasted text isn't the text from neovim.

However, if I go to neovim, press :, and press ctrl-v, the text from neovim is pasted into neovim command mode.

It seems NeoVim's copy/paste support is only within Neovim, "* doesn't communicate to Windows 10 clipboard.

windows

Most helpful comment

Clipboard support on Windows 10 breaks randomly for me; here is a screen capture video to show what I mean by random: https://streamable.com/b67ya

In the video I copy something from notepad to the system clipboard, copy something from another buffer to the vim internal yank buffer, bind a macro to pasting and adding a newline, and then just repeatedly type @@.

It works perfectly in command-line nvim but fails about 50% of the time in neovim-qt, pasting the contents of the vim default internal buffer instead of the clipboard buffer.

I should add that clipboard support has been flaky for me on Windows ever since I started trying to use neovim sometime in early August, and is broken also with the latest release from https://github.com/neovim/neovim/releases . It's only now that I got frustrated enough to start triaging the cause of the issue.

All 7 comments

I find this issue is sporadic. See the screenshot. I opened two NeoVim. One NeoVim is able to get the content of the Windows 10 clipboard, while the other cannot.

1

@gqqnbig,

The (win32yank)[https://ci.appveyor.com/project/equalsraf/win32yank] is part of the neovim-qt deloyment package on Windows. It deals with bridging the copy and paste operations between nvim and the Windows Clipboard.

I'm curious if you could provide the following information. It might help myself, or another, troubleshoot!

  • Output from :CheckHealth
  • nvim.exe version and nvim-qt.exe version that's being executed
  • How you installed neovim and neovim-qt (manually/Chocolatey/Scoop/etc)

I'm curious how your win32yank.exe is setup. You might consider running the following PowerShell in a non-Administrator PowerShell console. It resolves the source location for some binaries and runs :CheckHealth in nvim.exe.

# Get PATH resolved binary source locations
'win32yank.exe','nvim.exe','nvim-qt.exe' | Get-Command -ErrorAction SilentlyContinue | Select -Property Source

nvim +CheckHealth

@DustinVenegas Hi, thanks for the followup! I'm so busy recently and don't have time debugging this. I understand it's disappointing for you developers, I'm so sorry about that.

Hi @DustinVenegas

I have the similar issue here.

  • I install neovim from Scoop, version 0.3.1
  • The :checkhealth can find win32yank.exe when I run neovim in powershell, but can't find it when I'm outof powershell
  • The powershell script also can't find win32yank.exe but can find nvim.exe and nvim-qt.exe

Thanks!

Clipboard support on Windows 10 breaks randomly for me; here is a screen capture video to show what I mean by random: https://streamable.com/b67ya

In the video I copy something from notepad to the system clipboard, copy something from another buffer to the vim internal yank buffer, bind a macro to pasting and adding a newline, and then just repeatedly type @@.

It works perfectly in command-line nvim but fails about 50% of the time in neovim-qt, pasting the contents of the vim default internal buffer instead of the clipboard buffer.

I should add that clipboard support has been flaky for me on Windows ever since I started trying to use neovim sometime in early August, and is broken also with the latest release from https://github.com/neovim/neovim/releases . It's only now that I got frustrated enough to start triaging the cause of the issue.

I get the same issue... clipboard breaks randomly. Any news regarding this? Has the issue been solved in newer releases (as of 2019 / almost 2020)?

@alvarocaceresmunoz
Clipboard works fine for me on Windows/Linux.

Without more information, it is difficult to track down the problem. Dustin has some great suggestions for the essential debugging information above.

Was this page helpful?
0 / 5 - 0 ratings