Closed lacygoill closed 4 years ago
I don't think this issue can be fixed because a yank doesn't increase b:changedtick
, and vim-repeat
doesn't handle well such an operator (the user may need to invoke repeat#invalidate()
, but in practice it's not always possible) . I just thought it was worth being reported.
Yank is not traditionally dot-repeatable in Vim, also.
I see that you also found https://github.com/tpope/vim-repeat/issues/63 ...
Describe the bug
A yank can't be repeated after using the
z
text-object, even if'cpo'
contains they
flag.To Reproduce
Run this shell command (you'll need to update the paths to the plugins):
"Ayzcd
to yank and appendab
into the registera
.k
to move on the line above..
to repeat"Ayzcd
.A new pair of characters is asked.
Expected behavior
The last pair of characters is automatically re-used.
Screenshots
Environment
vim-sneak
version: https://github.com/justinmk/vim-sneak/commit/98a5c946d6dc76528b9d9b044059b5ef1fab5a48vim-repeat
version: https://github.com/tpope/vim-repeat/commit/c947ad2b6a16983724a0153bdf7f66d7a80a32caAdditional context
I tried to fix the issue by replacing this line: https://github.com/justinmk/vim-sneak/blob/98a5c946d6dc76528b9d9b044059b5ef1fab5a48/plugin/sneak.vim#L240
With:
But it doesn't work.