vim-auto-save icon indicating copy to clipboard operation
vim-auto-save copied to clipboard

Undo list is modified for every repetition of a macro

Open Asheq opened this issue 8 years ago • 1 comments

First-off: Great plugin! Auto-saving is a revelation.

I've run into a minor annoyance: Let's say I record a macro with qqAhello<Esc>q. Then, I run the macro 22 times with 22@q.

Normally (with auto-save disabled), running the macro 22 times as I did is counted as one change. So I can undo all of it with a single u.

With auto-save enabled, each of the 22 runs is counted as a separate change. I would have to press u 22 times or 22u to get back to where I was.

Not sure what the best way to deal with this is or if it should even be dealt with. Just want to bring it to your attention.

Asheq avatar Dec 07 '17 22:12 Asheq

@Asheq Thank you for your report! Unfortunately I see no way of fixing it :(

907th avatar Dec 11 '17 06:12 907th