vim-easymotion icon indicating copy to clipboard operation
vim-easymotion copied to clipboard

Search paste is broken in [email protected]

Open ddaza opened this issue 5 years ago • 8 comments

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)

ddaza avatar Sep 24 '19 14:09 ddaza

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.

btmwayne avatar Oct 13 '19 06:10 btmwayne

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 avatar Mar 09 '20 21:03 ywpkwon

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

ywpkwon avatar Mar 09 '20 23:03 ywpkwon

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.

ywpkwon avatar Mar 13 '20 12:03 ywpkwon

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

sondnm avatar May 06 '20 03:05 sondnm

Same as nvim v0.5.0-nightly v0.4.3

yangxyo avatar Jul 03 '20 06:07 yangxyo

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

tux3 avatar Oct 13 '21 12:10 tux3

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?

ishandandekar avatar Dec 22 '23 14:12 ishandandekar