vim-textobj-user icon indicating copy to clipboard operation
vim-textobj-user copied to clipboard

'< '> overwritten

Open BertrandSim opened this issue 4 years ago • 3 comments

Hi Kana,

I noticed that vim-textobj-user overwrites the last visual selection, for example, with yil and vim-textobj-line.

It seems that this issue has been fixed before #55 , but in the latest version (0.7.6) this issue seems to be back again

BertrandSim avatar Jul 18 '19 08:07 BertrandSim

See https://github.com/kana/vim-textobj-user/issues/59 for the details.

kana avatar Jul 18 '19 09:07 kana

Maybe I am missing something, but I don't see how vim-surround is related to this issue.

BertrandSim avatar Jul 19 '19 16:07 BertrandSim

Indeed, I had missed something. While #55 fixed this issue, it resulted in this plugin being incompatible with custom operators that use getchar(), such as vim-surround. As I understand it, the PR #55 was reverted to allow compatibility with custom operators, at the cost of overwriting visual marks '< and '> .

BertrandSim avatar Jul 23 '19 04:07 BertrandSim