Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p always pastes another newline #218

Closed
Ploppz opened this issue Dec 24, 2016 · 9 comments
Closed

p always pastes another newline #218

Ploppz opened this issue Dec 24, 2016 · 9 comments

Comments

@Ploppz
Copy link

Ploppz commented Dec 24, 2016

When trying to paste something without newlines into a Visual section, it is always just pasted on a new line after the current. When pasting a whole line, there's always an extra empty line at the end.

@equalsraf
Copy link
Owner

Pasting should be handled by neovim, not the GUI.

Are you by any chance running an older Neovim on windows? There was a similar issue in neovim/neovim.

@markonm
Copy link

markonm commented Feb 18, 2017

I can reproduce this on Windows 10 with Neovim 0.2. It's happening when I use 'clipboard-unnamed' and 'clipboard-unnamedplus' or when I paste something from those registers directly with "*p or "+p.

@justinmk
Copy link
Contributor

@xtal8 Where did you get the neovim and neovim-qt builds from? (Please give the exact URL)

@markonm
Copy link

markonm commented Feb 18, 2017

@justinmk
Copy link
Contributor

Confirmed.

@equalsraf
Copy link
Owner

Should be fixed in neovim/neovim#6255

ping @xelra

justinmk pushed a commit to neovim/neovim that referenced this issue Mar 11, 2017
Fixes trailing newline bug when pasting text in Windows.

References:
equalsraf/neovim-qt#218
equalsraf/neovim-qt#253
@xelra
Copy link

xelra commented Mar 11, 2017

Works flawlessly.

Thanks @equalsraf. It's amazing at which speed you close issues.

@equalsraf
Copy link
Owner

This was actually fixed earlier in win32yank, but I forgot to tag it :S

Closing this one.

@jorgeOmurillo
Copy link

I'm on Windows 7 (32-bit), I replaced the old win32yank.exe file with v0.0.3 and I still can't copy/paste to the system clipboard.
I used this Neovim build:
https://ci.appveyor.com/api/projects/neovim/neovim/artifacts/build/Neovim.zip?branch=master&job=Configuration%3A%20MINGW_32

If my init.vim file is empty, when I paste text "" is inserted instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants