*redo, sorry

6 points
*

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

permalink
report
reply
1 point

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

permalink
report
reply
4 points

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.

permalink
report
reply
6 points

vim using u and ``

permalink
report
reply
18 points

“What did that code look like two minutes ago?”

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

“Oh, ok.”

  • Cmd+Shift+ZZZZZZZZZZZZZZZZZZZZZZ
permalink
report
reply
2 points
*

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

permalink
report
parent
reply
1 point

wait that seems really usefull is that in standart vim ?

permalink
report
parent
reply
1 point
*

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.

permalink
report
parent
reply
3 points

why is this so true,

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 5.2K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments