*redo, sorry
Am I the only one who only knew ctrl+y
? I’ve been used to it since forever and never used ctrl+shift+z
even tough I am a keyboard shorcut fanboy…
edit: also the logic behind ctrl+shift+z
totally makes sense, i’ll try it everywhere now lol
C-/ for undo. C-/ for redo. All you need.
Similar to how vscode uses Ctrl+shift+arrows for multi line editing but for some reason on my person computer that is hot keyed to flip the screen upside down.
vim using u
and ``
“What did that code look like two minutes ago?”
- Cmd+A
- Cmd+C
- Cmd+ZZZZZZZZZZZZZZZZZZZZZZ
“Oh, ok.”
- Cmd+Shift+ZZZZZZZZZZZZZZZZZZZZZZ
lol, just use time travel, Vim time travel:
:earlier 2m
and back:
:later 2m
Yes, plain vanilla Vim
Here’s help entry (see section 4 if link doesn’t redirect to it).
And it is even more useful with an undo-tree plugin.