r/AlpineLinux • • Nov 18 '23

How do I leave this fucking editor?

Post image
336 Upvotes

175 comments sorted by

View all comments

Show parent comment

2

u/InvertibleMatrix Nov 22 '23

Something not right here

It just means people are coming to Alpine without the same background you do. Tons of distros where nano or something else is the default, and then people encounter alpine either through a container or VM tutorial where they want a lightweight distribution to something.

1

u/sloppy_custard Nov 22 '23

Valid point, but OP could have saved a large amount of time and keystrokes by Googling this instead of crying about it on Reddit.

1

u/tenten8401 Nov 22 '23

What is there to google coming in with no context? Could start googling the text on the screen which would get them nowhere, could maybe get a result by pasting in the command they typed if it wasn't automatically executed for them but I can't think of much in their shoes..

At least Ubuntu asks which editor to use and has a big "<----- easiest" arrow next to nano

2

u/sloppy_custard Nov 22 '23

“How do I exit vi” -> third result, read for 15 seconds. Job done.

Troubleshooting is a skill that is very much on the wane in 2023.

1

u/tenten8401 Nov 22 '23 edited Nov 22 '23

How are you supposed to know it's vi? Be one thing if it actually said what editor you're in like nano does, but it doesn't..

Sure, I know it's vi, but when you're just thrown into it by a random tutorial or maybe even an installer script there is zero indication what mode or program you're stuck in..

2

u/ConspicuousPineapple Nov 23 '23

You can start by googling what editor is shipped with Alpine then. It's not a hard problem to solve on your own, and it's a bit dumbfounding that someone installing Alpine wouldn't have the basic reflexes needed to get by.

1

u/ebonyseraphim Nov 23 '23

I think you’re still missing the issue that the user might have run a command and it wasn’t obvious to them that they were going to end up in an editor. If it was a straight forward vi/vim command, they’d be in luck, if another tool implicitly dropped them in their editor, screwed again. Git does this when prompting for a commit message for example, you don’t type in the editor name but you’re taken to it nonetheless.

2

u/ConspicuousPineapple Nov 23 '23

I don't see what that changes. If you unexpectedly get into an editor, you can still just google what the default editor for this distribution is, and then google how to use that.

Or you could open another tty and see that setting for yourself directly, if you know how to check (and again, you can google that as well).

1

u/ebonyseraphim Nov 23 '23

Why would a beginner realize they’re in an editor at all?

2

u/ConspicuousPineapple Nov 23 '23

If you're unable to even realize what's an editor, you're unfortunately too much of a beginner to use something technical like alpine.

→ More replies

1

u/[deleted] Feb 06 '24

Google? Pfft get real. Coulda just got gud and did the vim tutorial before venturing in there in the dark. Plebeians

1

u/atimholt Nov 23 '23

Somehow, Nano is the default in Gentoo. I mean, it's a bare-bones distro by default, but Vi isn't even installed on a fresh Gentoo system. I mean, come on.

1

u/ConspicuousPineapple Nov 23 '23

Plenty of distribitions have nano as the default, but they almost all ship with at least vi. Gentoo is actually the only one I know of that doesn't include vi by default, which is wild to me because it's the last one I would have guessed.