300
It always gets me (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by ytrav@lemmy.world to c/programmer_humor@programming.dev

*redo, sorry

you are viewing a single comment's thread
view the rest of the comments
[-] 6xpipe_@lemmy.world 17 points 1 year ago

"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)

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

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

wait that seems really usefull is that in standart vim ?

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

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 ^^

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

Programmer Humor

19503 readers
328 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