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

Conflict with tpope's vim-surround

Open eedrah opened this issue 5 years ago • 0 comments

I'm finding that there's some conflict with tpope's vim-surround plugin. I migrated to this from vim-easyclip, so that I could save my cuts to the yank ring with the option yoinkIncludeDeleteOperations which is not in easyclip. Easyclip didn't have any issues with vim-surround, but since migrating to yoink the change surround cs function is not working correctly.

given:

function () {
    thing*
    other thing
}

where * is my cursor, when I type cs{(, I'd expect tpope's surround plugin to give me:

function () ( thing
        other thing
        )

which it does, when yoink's let g:yoinkIncludeDeleteOperations = 0. If it is = 1 then it gives me:

function () 
    (
     {
     }
    )

(or sometimes even whatever is in the clipboard appears in the middle).

eedrah avatar Oct 03 '19 22:10 eedrah