this post was submitted on 10 Aug 2023
312 points (86.3% liked)

Programmer Humor

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

*redo, sorry

you are viewing a single comment's thread
view the rest of the comments
[–] 6xpipe_ 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
[–] ytrav 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

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

[–] nogrub 1 points 1 year ago

oh thank you good sir ^^