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

It doesn't work in VISUAL Mode! #108

Open
jcppython opened this issue Sep 29, 2017 · 14 comments
Open

It doesn't work in VISUAL Mode! #108

jcppython opened this issue Sep 29, 2017 · 14 comments

Comments

@jcppython
Copy link

It doesn't work in master branch!
I found that it's fine in VisualModeFixAttempt branch, certainly, some problem already.

Do you have plan to fix it?
thank you!

@svermeulen
Copy link
Owner

Define "doesn't work" please. I'm not seeing an issue in my install.

@jcppython
Copy link
Author

It work for full line, I can't copy/paste for a word, a block (visual mode) ...

some fail cases:
image

image

@svermeulen
Copy link
Owner

What do you mean paste fail?

@jcppython
Copy link
Author

jcppython commented Sep 29, 2017

No output after "p".

@svermeulen
Copy link
Owner

Not seeing this, please provide more detail on your environment, vim version, etc.

@svermeulen
Copy link
Owner

Also if you can reproduce with vanilla vim and a stripped down vimrc with just easyclip alone that would be great

@jcppython
Copy link
Author

jcppython commented Sep 29, 2017

Following your guide "vimrc with just easyclip alone".
It will be ok after removing "set clipboard=unnamed".
👍

But, I want to set clipboard=unnamed, as you point in part of "Clipboard setting"...

@svermeulen
Copy link
Owner

What was it set to that caused the issue?

@jcppython
Copy link
Author

I don't know the specific reason. It will have some problem after add set clipboard=unnamed in vimrc.

vim8.0. Centos.

@svermeulen
Copy link
Owner

Ohh ok, I think I know what's happening. It's probably related to #23 . Having clipboard set to unnamed should work fine, I think we have to address that issue for it to work though

@oryband
Copy link

oryband commented Mar 25, 2018

@svermeulen can confirm this bug. This is following the recent changes that were made in the last month or so. Easyclip has become unusable for me on Arch linux as well.

:echo EasyClip#GetDefaultReg()
+

My easyclip settings are:

set clipboard=unnamed,unnamedplus
let g:EasyClipShareYanks = 1
let g:EasyClipShareYanksDirectory = '$HOME/.vim'
nmap M <Plug>MoveMotionEndOfLinePlug

Any idea how to resolve this?

@svermeulen
Copy link
Owner

svermeulen commented Apr 8, 2018

@oryband I reverted some recent changes that was causing some breakage so updating to master might help you. We still need to address #23 though

@desprit
Copy link

desprit commented Apr 13, 2021

I have the following setting:

set clipboard=unnamed,unnamedplus
let g:EasyClipShareYanks=1

If I copy line with yy I can then paste it into a different nvim window with p.
But when I copy in visual mode Vjjy, then copied lines are not available in another nvim window.

@pfernandez
Copy link

pfernandez commented Aug 6, 2021

I noticed this today while comparing files with vimdiff and trying to (for example) yank a single word with viwyp: Nothing is yanked. It works when editing normally though. 😞 My related settings are:

Plug 'rickhowe/diffchar.vim'

set diffopt+=vertical
set diffopt+=iwhite
set diffexpr=""
if &diff | colorscheme molokai | endif

set clipboard=unnamedplus

let g:EasyClipAutoFormat = 1 
let g:EasyClipPreserveCursorPositionAfterYank = 1
let g:EasyClipShareYanks = 1
let g:EasyClipShareYanksDirectory = '$HOME/.vim'
nmap M <Plug>MoveMotionEndOfLinePlug

Reproduce by positioning the cursor over a word, then viwyp.

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

5 participants