Wednesday, October 23, 2024

Revert all undos

Probably a FAQ but I could not find an answer online.

Is there a single mapping or command for reverting/redoing all undos, or alternatively how could one be created, e.g. is there a way to get the number of extant undos?[1]

The use case is that because of my disability I have remapped all `<C-...>` and `<S-...>` mappings I use frequently to use a sequence of two/three keys instead of two/three simultaneous keys (Typically `<F-...>...` with one `<F-...>` for each of `<C-...>` and `<S-...>`) but because of the same disability hitting the same two-key sequence over and over is also difficult.[2]

TIA,

/bpj

[1]: Obviously I can do `:w` before the undos and then `:e` but I keep forgetting the `:w`! :-)

[2]: Sometimes I can use the regular modifier key command, holding down CTRL and pressing the other key repeatedly with the other hand, but in Termux on my tablet or phone those are also two-key sequences so I'm toast anyway! (Of course I have my remappings in Termux too...)

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhAEZ61j4a_bJxjGSV-4iVMBApNr2T%2B-LyO2BnQskhzjWw%40mail.gmail.com.

No comments: