svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

Turning off BlackHoleRedirect does not always work #123

Open petersohn opened 6 years ago

petersohn commented 6 years ago

I like to keep the default behavior of vim so I have the following config:

let g:EasyClipUseSubstituteDefaults = 0
nmap <silent> S <plug>SubstituteOverMotionMap
nmap <silent> SS <plug>SubstituteLine
xmap <silent> S <plug>XEasyClipPaste
let g:EasyClipShareYanks = 1
let g:EasyClipCopyExplicitRegisterToDefault = 1
let g:EasyClipShareYanksDirectory = "/tmp"
let g:EasyClipEnableBlackHoleRedirect = 0
let g:EasyClipUseCutDefaults = 0
let g:EasyClipUsePasteToggleDefaults = 0 " TODO: Enable it when fixed
let g:EasyClipYankHistorySize = 10

Notice that EasyClipEnableBlackHoleRedirect is disabled. Normally, everything works as intended, but sometimes, after deleting with d or c, the register becomes empty instead of containing the text I just deleted. I cannot reliably reproduce the issue, but it usually comes up after I don't use copy/paste for a time. Undoing and repeating the deletion fixes the issue.