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

Programmer Humor

19187 readers
1181 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
301
It always gets me (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

*redo, sorry

all 44 comments
sorted by: hot top controversial new old
[–] [email protected] 93 points 1 year ago (1 children)
[–] [email protected] 23 points 1 year ago* (last edited 1 year ago) (1 children)

Right, this meme is just undo but with extra steps

[–] [email protected] 23 points 1 year ago (1 children)

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

[–] [email protected] 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

[–] [email protected] 51 points 1 year ago (1 children)
[–] [email protected] 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!

[–] [email protected] 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?

[–] [email protected] 7 points 1 year ago

Wow, thx! TIL that you can redo stuff

[–] [email protected] 36 points 1 year ago (1 children)

Germans on English kezboards know the struggle

[–] [email protected] 11 points 1 year ago

I see what you did there.

[–] [email protected] 31 points 1 year ago (1 children)

My text editor uses u and U

[–] [email protected] 5 points 1 year ago (2 children)
[–] [email protected] 6 points 1 year ago (1 children)
[–] [email protected] 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

[–] [email protected] 2 points 1 year ago

idk my vim uses u U in visual.

[–] [email protected] 2 points 1 year ago

You know it.

[–] [email protected] 18 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
[–] [email protected] 3 points 1 year ago

why is this so true,,,,,

[–] [email protected] 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

[–] [email protected] 1 points 1 year ago (1 children)

wait that seems really usefull is that in standart vim ?

[–] [email protected] 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.

[–] [email protected] 1 points 1 year ago

oh thank you good sir ^^

[–] [email protected] 15 points 1 year ago

More like Ctrl-WHYYYY?

[–] [email protected] 10 points 1 year ago (2 children)
[–] [email protected] 5 points 1 year ago
[–] [email protected] 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

[–] [email protected] 6 points 1 year ago

vim using u and ``

[–] [email protected] 5 points 1 year ago (3 children)

Ctrl + Y shall paste, and nothing else!

[–] [email protected] 33 points 1 year ago* (last edited 1 year ago) (3 children)

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

[–] [email protected] 29 points 1 year ago (2 children)
[–] [email protected] 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.

[–] [email protected] 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

[–] [email protected] 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.

[–] [email protected] 8 points 1 year ago (1 children)
[–] [email protected] 9 points 1 year ago

Strange, It open the magnifier.

[–] [email protected] 7 points 1 year ago

y to yank p to paste d to cut

[–] [email protected] 7 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago
[–] [email protected] 7 points 1 year ago

Found the qwertz user

[–] [email protected] 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.

[–] [email protected] 2 points 1 year ago

Windows Explorer..

[–] [email protected] 1 points 1 year ago

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