Just merged my first PR to contribute to a linux distro (dietpi)

merthyr1831@lemmy.world to Linux@lemmy.ml – 214 points –

can I get a W in the chat????

EDIT rip inbox lmao

64

:w

iW^[:wq

What is ^[ here? Do you literally type that I to the keyboard? Or is it the ANSI escape sequence for Ctrl or something.

I hate whenever I see something binded to the square braces, does not work properly for qwerty or is at least impractical.

Ctrl-[ is escape in ASCII (not specifically ANSI/VT100/etc), and Ctrl is sometimes abbreviated as ^.

I don't know the exact history of why this is a thing that comes up with vi often. My guess is that ESC on the ADM-3a terminal that vi originally targeted influenced it. On ADM-3a, ESC is where tab is on a PC-101 keyboard, a comfy key to hit while touch typing. When later terminals started to move ESC a couple of rows up it was more ergonomic to hit ctrl-[ instead.

Link the PR

W! True Gigachads help maintaining FOSS. Sadly I only know some Java and never really coded something bigger so I can't contribute to FOSS projects.

This PR was bash scripting which I've never done before! Really worth just browsing projects that you use to see if they have super basic issues you can pick up because its such a good feeling when a PR gets good feedback πŸ₯ΉπŸ₯Ή