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

Problem with macros + paste in visual mode

Open thalesmello opened this issue 8 years ago • 1 comments

Suppose I have the following text, and that [] represents where my cursor is.

[f]oo bar
beep bop
superman batman
hello world

I want to record a macro to replace each line with the second word. So I type in the sequence qq^wveyVpjq so the corresponding macro is stored in the q register. After recording the macro, the text is in the following state.

bar
[b]eep bop
superman batman
hello world

Now, I wish to type in @q in order to execute the macro stored in the q registers. However, when I do that, this is what the text looks like:

bar
bbo[p]eep bop
superman batman
hello world

I have strong beliefs this is due to Yankstack, because the content of the q register is as follows:

^wveyVp<80><fd>Syankstack_substitute_older_pastej

Are you able to reproduce this issue?

thalesmello avatar Feb 11 '16 20:02 thalesmello

Hey! Got here for the exact same problem

It'll be awesome being able to disable yankstack in macro recording

eduardoarandah avatar Jun 11 '20 18:06 eduardoarandah