easymotion / vim-easymotion

Vim motions on speed!
http://www.vim.org/scripts/script.php?script_id=3526
7.44k stars 357 forks source link

Search paste is broken in neovim@0.4.2 #408

Open ddaza opened 4 years ago

ddaza commented 4 years ago

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

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

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.)

ywpkwon commented 4 years ago

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

ywpkwon commented 4 years ago

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

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

Same as nvim v0.5.0-nightly v0.4.3

tux3 commented 2 years ago

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

ishandandekar commented 9 months ago

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?