svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

EasyClipEnableBlackHoleRedirect=0 breaks `mm` and doesn't work with `d` #85

Open fvisin opened 8 years ago

fvisin commented 8 years ago

Disabling EasyClipEnableBlackHoleRedirect breaks mm.

Also, I don't know if this is the intended behavior, but when EasyClipEnableBlackHoleRedirect=0 the text cut with d or dd is not added to the yank buffer, as I would instead expect. It would be great to have at least one option to enable this behavior, if not to do it by default.

svermeulen commented 8 years ago

What are you trying to do exactly?

Sounds like you want d to be used as easyclip cut? If so you can try this:

let g:EasyClipUseCutDefaults = 0

nmap d <Plug>MoveMotionPlug
xmap d <Plug>MoveMotionXPlug
nmap dd <Plug>MoveMotionLinePlug
fvisin commented 8 years ago

I should have probably opened two separate issues:

  1. When I set EasyClipEnableBlackHoleRedirect=0, mm stops working.
  2. I am trying to keep the default behaviour of d (and variants, e.g. dd, dw, D, ..) but adding the deleted text to the yank buffer, so that I can cycle through the deleted lines when I paste.

    I tried your suggestion but unfortunately it doesn't work, e.g. dw and dl delete much more than they normally do.