Closed DJMcMayhem closed 8 years ago
So, I ended up replacing the duplicate "psuedo operator" with an actual vim-operator. It was a little bit hacky since I want to treat 3<dup>w
differently than <dup>3w
. The first will yank one word, and paste it 3 times. The second will yank 3 words and paste it 1 time. Anyway, this issue is fixed now.
For example, look at this program:
Explanation:
For some reason though, this deletes the character before duplicating the line. I'm guessing it's most likely a bug with the
feedkeys
function putting the paste command in the wrong place in the keypress queue. The same issue comes up if you put the duplicate command in a macro. For example, this program:Clearly prints all the "ones" after the macro is done executing.