this post was submitted on 10 Aug 2023
299 points (85.9% liked)

Programmer Humor

19512 readers
423 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

*redo, sorry

all 44 comments
sorted by: hot top controversial new old
[–] victron@programming.dev 93 points 1 year ago (1 children)
[–] RampageDon@lemmy.world 23 points 1 year ago* (last edited 1 year ago) (1 children)

Right, this meme is just undo but with extra steps

[–] qaz@lemmy.world 23 points 1 year ago (1 children)

They probably mean redo, because that is what CTRL + SHIFT + Z and CTRL + Y commonly do.

[–] SatyrSack@lemmy.one 5 points 1 year ago

They tried to CTRL+SHIFT+Z to undo that last word, but that key combo was actually set to export the photo

[–] rtorlas@lemmy.world 51 points 1 year ago (1 children)
[–] Synthead@lemmy.ml 17 points 1 year ago

Don't forget that Vim also keeps every tree of undo history. Wrote someone one way, wanted to try another way, and changed your mind? Switch to the other undo future! Change your mind again? Go back!

And there's persistent undo, where your undo history is written a file. Quit Vim, power off your machine for 5 years, power it back on, and you can still undo!

[–] marcos@lemmy.world 39 points 1 year ago (1 children)

Shouldn't it be used for redo?

I mean, yeah, of course it should be paste. But if you decide to break the established convention, isn't the next option redo, instead of undo?

[–] beta_tester@lemmy.ml 7 points 1 year ago

Wow, thx! TIL that you can redo stuff

[–] nicoweio@lemmy.world 35 points 1 year ago (1 children)

Germans on English kezboards know the struggle

[–] Dogeek@sh.itjust.works 11 points 1 year ago

I see what you did there.

[–] mister_monster@monero.town 31 points 1 year ago (1 children)

My text editor uses u and U

[–] lrabbt@lemmy.world 5 points 1 year ago (2 children)
[–] ChickenAndRice@sh.itjust.works 6 points 1 year ago (1 children)
[–] philm@programming.dev 5 points 1 year ago* (last edited 1 year ago) (1 children)

Hmm pretty sure, it's not vim, as that would be u and C-r

[–] sip@programming.dev 2 points 1 year ago

idk my vim uses u U in visual.

[–] mister_monster@monero.town 2 points 1 year ago

You know it.

[–] 6xpipe_@lemmy.world 17 points 1 year ago (2 children)

"What did that code look like two minutes ago?"

  • Cmd+A
  • Cmd+C
  • Cmd+ZZZZZZZZZZZZZZZZZZZZZZ

"Oh, ok."

  • Cmd+Shift+ZZZZZZZZZZZZZZZZZZZZZZ
[–] ytrav@lemmy.world 3 points 1 year ago

why is this so true,,,,,

[–] janAkali@lemmy.one 2 points 1 year ago* (last edited 1 year ago) (1 children)

lol, just use time travel, Vim time travel:
:earlier 2m
and back:
:later 2m

[–] nogrub@lemmy.world 1 points 1 year ago (1 children)

wait that seems really usefull is that in standart vim ?

[–] janAkali@lemmy.one 1 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] nogrub@lemmy.world 1 points 1 year ago

oh thank you good sir ^^

[–] linuxgator@lemmy.ml 15 points 1 year ago

More like Ctrl-WHYYYY?

[–] knobbysideup@lemm.ee 10 points 1 year ago (2 children)
[–] Synthead@lemmy.ml 5 points 1 year ago
[–] darcy@sh.itjust.works 6 points 1 year ago

vim using u and ``

[–] lolcabanon@programming.dev 6 points 1 year ago* (last edited 1 year ago)

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

[–] EmasXP@lemmy.world 5 points 1 year ago (3 children)

Ctrl + Y shall paste, and nothing else!

[–] Diabolo96@lemmy.dbzer0.com 33 points 1 year ago* (last edited 1 year ago) (3 children)

Ctrl-c copy. Ctrl-v past. Ctrl-x cut

[–] Eonandahalf@lemmy.world 29 points 1 year ago (2 children)
[–] redcalcium@lemmy.institute 16 points 1 year ago* (last edited 1 year ago) (1 children)

I prefer ctrl+shift+z for redo. The advantage is you can spam both undo and redo without moving your finger from Ctrl and Z buttons. Very common in professional apps.

[–] Squids@sopuli.xyz 5 points 1 year ago

Also in art apps, because it's not uncommon to want to undo and redo the same action over and over to see the difference something makes

...except gimp and krita. Seriously get your damn act together youse two

[–] Diabolo96@lemmy.dbzer0.com 11 points 1 year ago* (last edited 1 year ago) (1 children)

And Ctrl-z undo.

That's all i know. If anyone know more please share.

[–] MagicShel@programming.dev 8 points 1 year ago (1 children)
[–] Diabolo96@lemmy.dbzer0.com 9 points 1 year ago

Strange, It open the magnifier.

[–] BorgDrone@lemmy.one 7 points 1 year ago

y to yank p to paste d to cut

[–] psilocybin@discuss.tchncs.de 7 points 1 year ago (1 children)
[–] Synthead@lemmy.ml 2 points 1 year ago
[–] Skipcast@lemmy.world 7 points 1 year ago

Found the qwertz user

[–] PBSkidz4Lyfe@lemmy.world 4 points 1 year ago

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.

[–] Joosl@feddit.de 2 points 1 year ago

Windows Explorer..

[–] docAvid@midwest.social 1 points 1 year ago

C-/ for undo. C-/ for redo. All you need.