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

Search paste is broken in neovim@0.4.2 #408

Open
ddaza opened this issue Sep 24, 2019 · 8 comments
Open

Search paste is broken in neovim@0.4.2 #408

ddaza opened this issue Sep 24, 2019 · 8 comments

Comments

@ddaza
Copy link

ddaza commented Sep 24, 2019

Trying to search for a string in my clipboard with easymotion results in the pasted text is inserted directly into the buffer window as opposed than on the easymotion search. Maybe some clipboard handling changed, but i was able to reproduce with this config.

set clipboard^=unnamed,unnamedplus " clipboard config
let g:EasyMotion_do_mapping = 0
let g:EasyMotion_smartcase = 1
map  / <Plug>(easymotion-sn)
omap / <Plug>(easymotion-tn)
@btmwayne
Copy link

Have you tried:

/ --> Ctrl-R --> Shift-8 --> Enter

then again / --> Up or Ctrl-P see if it is the same value you where searching for.

try that as well:
set g:EasyMotion_add_search_history=1

for me it is working.

@ywpkwon
Copy link

ywpkwon commented Mar 9, 2020

I have the same issue. When I hit / and paste a string from my clipboard (shfit+ctrl+v in my terminal), the string goes directly into the buffer. With the original /, the string is pasted correctly. Is there a solution for this?
I think @btmwayne's solution sounds more like using history than enabling clipboard paste..? (thanks by the way. good to know.)

  • Ubuntu 18.04, Neovim 0.4.2

@ywpkwon
Copy link

ywpkwon commented Mar 9, 2020

I also confirmed the same behavior on Ubuntu 16.04, Neovim 0.4.3. Could anyone please suggest/advise?

@ywpkwon
Copy link

ywpkwon commented Mar 13, 2020

Just in case, I'm uploading GIF to show the behavior
Screencast-2020-03-13T04:54:21-07:00

  1. I showed copy/paste works well (copy paste works text).
  2. I copied a word copy. (please ignore blue auto-highlight)
  3. With the original ? command, I could paste the clipboard text copy. You can see all words are highlighted with yellow background. This works the same with the original /.
  4. With the override / command, even while the cursor is after / in the command line, if I paste, then the clipboard text directly goes into the buffer.

@sondnm
Copy link

sondnm commented May 6, 2020

I have the same issue with you and couldn't find a solution for this 😢
My trick is mapping a key to quickly search from clipboard

map <Leader>s <Plug>(easymotion-sn)<C-R>*<CR>

FYI, my clipboard setting is

set clipboard=unnamed

@yangxyo
Copy link

yangxyo commented Jul 3, 2020

Same as nvim v0.5.0-nightly v0.4.3

@tux3
Copy link

tux3 commented Oct 13, 2021

I can still reproduce with NVIM v0.6.0-dev+107-g3d1835967

@ishandandekar
Copy link

I have the same issue with you and couldn't find a solution for this 😢 My trick is mapping a key to quickly search from clipboard

map <Leader>s <Plug>(easymotion-sn)<C-R>*<CR>

FYI, my clipboard setting is

set clipboard=unnamed

Where should I put this keybind?

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

7 participants