svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

EasyClipUseCutDefaults does not restore default cut behaviour #21

Closed lordi closed 10 years ago

lordi commented 10 years ago

Hi, I want to use easyclip except that I want "cut" to change to the clipboard.

So, I wrote in my config:

let g:EasyClipUseCutDefaults = 0

But now when I cut a text with "c" or a line with "cc", it won't be in the clipboard. It won't be pasted if I press "p".

svermeulen commented 10 years ago

Try doing the following:

let g:EasyClipEnableBlackHoleRedirect=0
let g:EasyClipUseCutDefaults=0

What parts of easy clip do you want to use? With those settings, the delete operator and the change operator will both copy the text to the clipboard.

lordi commented 10 years ago

I want the delete operator to leave the clipboard alone, but the cut operator to change it. Is that possible with easyclip?

svermeulen commented 10 years ago

Ok I added support for this. To enable, update easy-clip then use the following options:

let g:EasyClipUseCutDefaults=0
let g:EasyClipEnableBlackHoleRedirectForChangeOperator=0
lordi commented 10 years ago

Ok thanks, it works fine with the new version and the settings.

svermeulen commented 10 years ago

Cool. Thanks for the report.