This screen appeared during installation procedure. I was asked if I want to edit network settings manually and I chose 'yes'. I didn't even know this was vim. Otherwise I'd have known to google 'how to exit vim' as I had this problem before. Looks like the setup routine just opened the file in vim but I didn't know.
Also first thing on every Linux I use is to make sure nano is installed but - as I said before - this was during setup.
Second thing that got me was the 'more' thing where it presents awful lot lines of text and also does not show how to interact with it. So I ended up pressing Enter what messed up my setup when it reached data/sys selection and I didn't stop fast enough... so long story short I did abort installation and started from zero again.
Looks like my Linux skills are not that advanced... and maybe never will be.
Feels like this unintuitive UI shit is just some gate keeping to disencourage newbies and I think that is really shit. As there is like no valid reason those cli tools have to be that shitty
Thanks for all the replies, some were really helpful and some gave me a good laugh
If you are going to use Linux then you should take a little time (<30 mins) to learn a few basics of vi(m). At least learn the quit sequence. You might even learn to like it.
Facts. Vi(m) is the bare minimum text editor you're nearly guaranteed to have on any Unix machine and it only takes like 30 mins or so to get the basics of navigation and editing down. Hell, maybe you'll start to like it and become a Neovim shill like me.
i donβt think you guaranteed to get vim. i think i have seen a server with vi. that was the only time i used vi and it lacks so many features vim has.
there is a fix for breaking nvim config. there is an environment variable you can set it in your.bashrc or whatever which points to your config. i donβt have my laptop open, so i donβt remember exactly but i think it is $NVIM_APPNAME. just search it online. you can easily have multiple configs. the other way will be to create separate git branch for change then merge
You aren't guaranteed to get Vim, I wrote it as "Vi(m)" because practically every Unix system will have one of either vi or vim. Personally, I'm more than happy with vi, vim, or nvim for simple edits.
Somehow, Vi is not installed on the Gentoo Stage 3 installer. Baffling. They even removed busybox (a tiny bare-bones multi-utility program including a stripped-down Vi). It has Nano. Luckily, emerge busybox is a quick and easy procedure if you don't want to deal with fully setting up full-fat (Neo)Vi(m) early in your Gentoo installation procedure.
I would have never liked vim had I not read the trick to swap CapsLock and Escape. I went from "what the hell this is fricking stupid that the most important key is Escape!!!" to "I can never go back to non modal editing" Please stop shilling vim without mentioning that point.
I beg to differ, it's awkward. The most important must be just a key. Remapping CapsLock to Escape is a natively supported on all OSes and is a ten second operation. And now it also work for command line vim modes (bash, zsh, gdb, etc.)
It's not a problem for insert mode like it seems, because there's no english word or programing syntax I can think of actually has these two letters placed side by side. So you can keep typing as normal, until you hit both of these letters quickly, then it just exits insert mode without typing those letters.
There is a new website called Google that you can search for basic answers such as this. Since you clearly didn't try googling it implies you don't actually care to solve the problem, because googling your question is extremely simple and quick. In 15 secs you could nhave gotten the answer. But maybe you are posting this as rage bait
No I read it... It still just shows your lack of effort to find the answer. A quick Google search of description of the situation would have still given you the answer. You even knew it was a text editor. It's a REALLY common situation, but you didn't even try
That's absolutely a lie. It was the 6th result (4th on mobile) after googling those exact words... (How To Exit Vim Text Editor Command). Sure it was not the first result but come on...
Its ok to ask for help, just put in the tiniest bit of effort next time. Otherwise, it seems like you don't care.
Also you are being too specific, its a general terminal editor not specifically alpine or networking.
It honestly looks like OP wasn't lying. They probably aren't as skilled at interpreting search results as you are.
To you and me, it's quite obvious that it's vi/vim, but please consider that people won't necessarily recognize that any particular result on google might apply to their situation. OP was probably looking for a result that matched their result exactly rather than abstracting the situation to recognize that the default text editor is vi/vim, and instead saw that as yet another result that had the words related to the problem, but not actually applicable to the problem.
Sometimes, people don't really understand enough of the context surrounding their problem to interpret the response given to them. So if OP wasn't able to recognize that a search result entry applied to them, then it's not a lie to say it wasn't helpful. If I ask for an explanation of the mean value theorem, showing me the proof used in a real analysis textbook (as opposed to the one in a Calculus textbook) doesn't help if I don't understand set theory.
Maybe also reading the docs for Alpine could've brought up the answer. But I know when I was a newbie I definitely wouldn't have checked the docs right away. OP seems very close minded though, considering their mind went straight to "gatekeeping".
People like you make online spaces for hobbyist shittier.
I answered your question in the initial response
We are not paid tech support. We are random people spending our own time to help. You shouldn't abuse it. All I asked is for you to respect others time by putting in a little effort next time. Is that really such an overwhelming request? No it's not...
If you can't be bothered to Google your question, then it implies you don't care and just want others to do it for you. Why should anyone else expend the effort to help you if you refuse to put forth the slightest bit of effort. Don't be a leech in a small community.
Linux is a DIY system, if you refuse to Google the simple stuff you are going to have a rough time. Good luck!
Are you trying to claim I was being sarcastic... No shit... Thank you captain obvious.
If you are trying to claim OP was sarcastic then you are wrong.
Also if you block someone immediately after commenting. They can't see your comment... That was dumb of you. The only way I was able to read it was with an alt account...
Feels like this unintuitive UI shit is just some gate keeping to disencourage newbies and I think that is really shit. As there is like no valid reason those cli tools have to be that shitty
I used to make this mistake a lot, just because you don't understand why doesn't mean the answer is gatekeeping. Usually there's a logic to everything, even if it's due to historical reasons. This is a great situation where it absolutely isn't. Use nano for a while, spend 20 min learning vim using it a bit and it'll be pretty clear why people use vim.
Now, default editor definitely should've been nano, that seems a bad call from the distro in my perspective, but I wouldn't be so harsh as to call them "gatekeeping". It can be easy to forget that a lot of people will look at this screen and have no idea what's going on
ive been using vi since the 90s and its not really ever changed. Its not that it was designed to be gatekeepy, it was written at a time when things like UX werent really a consideration.
There are plenty of other editors. You dont have to learn vi.
Feels like this unintuitive UI shit is just some gate keeping to disencourage newbies and I think that is really shit
I mean, would you personally want your system's network interfaces to be configured by a person who can't figure out how to exit that system's default text editor?
Convengamos que la interfaz es rara, ESC en lugar de salir o cancelar algo (como sucede en el 99% de los casos a los que la gente esta acostumbrada) cambia entre varios modos. La interfaz es altamente anti-intuitiva y eso es innegable. Otra cosa es que sea practica y rΓ‘pida una vez que le agarraste la mano (como los atajos de teclado).
FWIW, the design behind vi/vim occurred very early in computer history, when (almost) everything was handled via keyboard and the concept of "UI" barely existed. It has some genuine strengths, hence its continued use. It's not intended as gatekeeping or anything else like that.
Having said all that, your frustration is understandable. π There's no need to become a vi/vim master, but I recommend learning a few basics through a short tutorial for situations like this. It's kind of fun! Think of it as experiencing a piece of tech history...or discovering alien software! π€£
I avoid vi/vim for the same reason. Hosed too many machines trying to use commands that were unfamiliar and cumbersome. I get why someone who was forced to use it everyday before emacs/nano/pico existed think itβs so great and easy to use. If you have that much free time devoted to learning a text editor, have at it. Iβd prefer some sort of command key visible for reference. I donβt need to learn a program just to edit my SSID info or change an installer parameter.
Vim and more being gatekeeping is a strange take..
Look at any popular tool these days then search for that tool + vim and you'll see someone trying to make it use vim key bindings. It's not shitty and it's not going away
I think the problem was that you somehow didn't listen to the obvious correct side that will keep telling you that vi is the only way and emacs and nano(?!) are abominations. Knowing that, you should have studied vi, and this would have easily been solved.
Feels like this unintuitive UI shit is just some gate keeping to disencourage newbies
They include these tools because they themselves prefer them and, believe it or not, they're powerful and versatile, unlike the alternatives.
As there is like no valid reason those cli tools have to be that shitty
I get you're mad but just because they implement paradigms that are foreign to you doesn't make these tools shitty.
I agree that something targeted to beginners shouldn't use this editor by default, or at least explain the basic stuff, but Alpine is definitely meant for experienced users.
I only use neovim but learning vim motions is something Every computer user should do. Absolutely worth it! I HIGHLY recommend you checking out ThePrimeagen talking about vim.
β¦ Feels like this unintuitive UI shit is just some gate keeping to disencourage newbies and I think that is really shit. As there is like no valid reason those cli tools have to be that shitty β¦
I feel your pain.
Hijacking the top comment to explain.
/u/user32532 I reckon, you can't hijack your own post :-)
Postscript
Thanks for all the replies, some were really helpful and some gave me a good laugh
A sense of humour is essential.
I've got that sense, but for myself, I had to draw a line when someone's text editor war tactics punched way below the belt with reference to suicide. I mean, that's really low, a conversation-stopper for all the wrong reasons.
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.
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
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..
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.
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.
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).
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.
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.
Once you learn how to properly wield vi, nothing is as efficient for editing code and config files. Itβll also be on just about every Unix machine in existence. Itβs a valuable skill to have and worth all the pain you experience in learning it.
I think vi(m) comes out of the box so is essentially the editor of last resort. I completely agree nano is a much better editor and if not on a system is the first thing I install. Even back in Unix days I hated vi and used emacs or anything else I could. Also if you ever look at the original vi source code it is a hugely contorted mess of spaghetti code, but at least vim is a clear rewrite.
There was sort of some excuse for vi's horrible mode based UI in the days when terminals were on 220baud connections and repaint was horrible slow, but that has not been the case since the 70s. Even a 9600baud line was fast enough for decent screen repaints.
If you really want to be a purist, don't use a screen editor at all. Line editors (ed, sed) are on all Linux systems, and awk is a much better tool for complex text manipulation than doing it in a screen editor π
Not about being a purist. I have RSI. Grabbing the mouse 5,000 times a day physically hurts. Vi bindings means a rarely move fingers from home position. I have over 200 key combinations in intelliJ that I use, yet, ironicly, there are very poor keyboard support to jump to 3 words over. vi does this elegantly. Delete to the end of the double quote, etc. All happen without a mouse. Yet, I still need to refactoring all instances of the function foo to bar across all files. A simple rename foo to bar won't do the right thing - that's what the code editor is best at (contextual awareness). Similarly chrome with multiple windows and multiple tabs requires complex interaction - but simple scroll navigation and link selection typically require mouse.
When you learn you are a slave to "moving" the cursor around to be where you want, you will understand what vi can do. Also, I'm almost guaranteed to find vi on any system, including old solaris boxen. Not so with nano.
In vi, you can fly directly to the character/word/line you want almost instantly. This changes how you view text editing in a terminal.
- Want to swap the current line with the next one? ddp
- Want to go to line 336? 336G
- Want to move the line one line after the line containing "Reddit" two lines above it? :/Reddit/+1m-2
- Increase the indentation of all lines between line 2 and the 2nd last line? :2,$-1>
- Sort data by year and month? :!sort -k2n -k1M
- Abbreviations for repeated text? no problem: :bbt Billy Bob Thornton
The list goes on and on. Nano can't even get close to that functionality.
And if you're balking at the syntax, consider how much time you spend in nano doing βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
%norm A, to instantly append a comma to the end of every line in a file so I can make an array out of a random list someone emails me in plain text that needs to be iterated over... lifesaver. imagine doing that in nano for even 20 lines.
To claim it the most powerful text editor shows you have never used emacs. Just as powerful for arcane things, but with a decent full screen editor that does not have vi's horrible modes.
I think you should spend sometime learning vim. Not any advanced keybinds but just get comfortable with it. It is incredibly useful because it is installed in almost every Linux distro.
Had the same experience when I was first learning Linux, I didn't even know what editor it was either and ended up just closing the terminal every time I would get stuck in it, did this for months..
Terrible UX and the people saying it's your fault are wrong. Nano has keybinds directly on the screen all times and it's obvious how to use it coming from almost any computer background.
It's dumb that vim is what's used in so many basic beginner guides often with zero explanation of how to use it :(
This is exactly why I learned Unix 30 years ago. I had an internet shell account, accidentally started and got stuck in vi, had to call their support for help. So embarrassing I went out the next day and bought a copy of βTeach Yourself Unix in 30 Daysβ, or some title close to that.
Here from front page, but hopefully I still have some valuable thoughts :-)
Surprised they're using vi | vim | neovim as the default editor. On a lot of distros, nano is the default because it's a lot more immediately intuitive and more beginner-friendly
There's a lot of power to it, I recommend at some point trying to learn it, or maybe even emacs, but nano is definitely still plenty serviceable especially in the beginning.
when I say "learn something other than nano I don't mean, drop what you're doing, never use nano again. What I'm saying is, nano is great in the beginning, but vim | neovim from lesson 1 or 2 and you're already a whole lot faster than you would be in nano.
"How do I exit vim" is a famous meme given that, well, you've learned first hand, it's not immediately intuitive how to quit. So famous I thought this might've been a meme post.
I'm dying π€£π I knew right away before I even opened the post that it was vi/vim. I went through this before too. There's an old joke that goes, if you want a secure password, have a noob try to exit vim lol.
36
u/[deleted] Nov 18 '23
There is no escape, welcome to vi | vim | neovim
17
u/LazyCheetah42 Nov 18 '23
You dont. Its part of you now.
17
u/sloppy_custard Nov 18 '23
-> Explicitly installs Alpine -> canβt exit vi
Something not right here
11
u/egigoka Nov 18 '23
Reboot should do the trick
12
u/shrizza Nov 18 '23
Press escape 64 times and unplug the computer.
3
u/[deleted] Nov 20 '23
Open a new terminal, duh.
4
u/syazwanemmett Nov 18 '23
Ok this is funnyπ
8
u/martinbaines Nov 18 '23
The worst editor UI known to mankind.
As others have said <escape>wq will save and exit.
Then install nano which has a better UI and is still very small and light.
2
u/noooit Nov 18 '23
C-x C-c
2
u/junialter Nov 18 '23
beep beep beep beep beeeeeeeeeeeeeeeeep
2
u/brycentiller Nov 20 '23
Grab the shotgun. That is the only way.
2
u/sp0rk173 Nov 20 '23
πππππ
2
u/WindloveBamboo Nov 21 '23
Ctrl+z
3
u/PatochiDesu Nov 18 '23
i also hate it!
1
u/Darklord98999 Apr 21 '24
Type β:β on your keyboard then q! It sould have text that say :q!
1
u/ibi_trans_rights Jul 12 '24
Ctrl z
1
u/shutupyoulovelygirl Nov 18 '23
viiiiii
1
u/BlendingSentinel Nov 20 '23
:wq
1
u/OhK4Foo7 Nov 20 '23
Heh, Nano. Bite the bullet and learn vi. Personally I find Nano rather cumbersome. If you're going to Linux do some Linux.
1
u/drcforbin Nov 20 '23
That's 2.9 million + 1 views of stack overflow's most viewed question
See their blog post about it from a few years ago
1
u/futurepat Nov 20 '23
Ctrl+TableFlip
1
u/[deleted] Nov 20 '23
Bruddah chill
Hit ESC > colon > q! > enter
1
u/LoserEXE_ Nov 21 '23
I think you should spend sometime learning vim. Not any advanced keybinds but just get comfortable with it. It is incredibly useful because it is installed in almost every Linux distro.
1
u/T_E_K_1 Nov 21 '23
:q! Usually works
1
u/devdan8520 Nov 21 '23
vim sucks nano's better js btw i use fedora
1
u/Egga22 Nov 21 '23
Control alt delete
1
u/Nick85er Nov 21 '23
FUCKING VIM hahahaha, I know this makes me a noob but man I prefer nano.
1
u/cachedrive Nov 21 '23
LOL - welcome to the meme.
1
u/Gixx Nov 21 '23
https://github.com/hakluke/how-to-exit-vim
1
u/Green_Pollution_8230 Nov 21 '23
Download Word? π
1
u/Variation-Abject Nov 22 '23
Why do you wanna leave /etc :(
1
u/senpaikcarter Nov 22 '23
I am actually wearing a sweatshirt right now with :wq on the front
1
u/aplethoraofpinatas Nov 22 '23
This is representative of the reason Debian defaults to nano.
1
u/HiYa_Dragon Nov 22 '23
Nano
1
u/tenten8401 Nov 22 '23
Had the same experience when I was first learning Linux, I didn't even know what editor it was either and ended up just closing the terminal every time I would get stuck in it, did this for months..
Terrible UX and the people saying it's your fault are wrong. Nano has keybinds directly on the screen all times and it's obvious how to use it coming from almost any computer background.
It's dumb that vim is what's used in so many basic beginner guides often with zero explanation of how to use it :(
1
u/1012zach Nov 22 '23
Once you enter Vi you cannot leave
1
u/CrAzYmEtAlHeAd1 Nov 22 '23
Better to just reinstall
1
u/doa70 Nov 22 '23
This is exactly why I learned Unix 30 years ago. I had an internet shell account, accidentally started and got stuck in vi, had to call their support for help. So embarrassing I went out the next day and bought a copy of βTeach Yourself Unix in 30 Daysβ, or some title close to that.
1
u/keithstellyes Nov 22 '23
Here from front page, but hopefully I still have some valuable thoughts :-)
vi | vim | neovimas the default editor. On a lot of distros,nanois the default because it's a lot more immediately intuitive and more beginner-friendlyThere's a lot of power to it, I recommend at some point trying to learn it, or maybe even
emacs, butnanois definitely still plenty serviceable especially in the beginning.nanoI don't mean, drop what you're doing, never usenanoagain. What I'm saying is,nanois great in the beginning, butvim | neovimfrom lesson 1 or 2 and you're already a whole lot faster than you would be innano.1
u/crackez Nov 22 '23
Learn Vim. Don't listen to anyone who says it's not worth it.
1
u/Confident_Date4068 Nov 22 '23
...and then switch to Midnight Commander with its editor.
1
u/dwerb Nov 22 '23
Escape, escape, shift+colon,q
Like up, up, down, down, β¦.
1
u/[deleted] Nov 22 '23
This seems genuine and is really funny. Props to you OP
1
u/Shock9616 Nov 23 '23
Lol what are they doing using Alpine Linux if they don't know how to use vi? π
1
u/brijesh-amin Nov 23 '23
You can checkout anytime.. But you can never leave π
1
u/rrklaffed Nov 23 '23
leave? you just got here, come on stay for a while
1
u/Beautiful-Bite-1320 Nov 23 '23
I'm dying π€£π I knew right away before I even opened the post that it was vi/vim. I went through this before too. There's an old joke that goes, if you want a secure password, have a noob try to exit vim lol.
1
u/itaranto Nov 23 '23
You can't, your computer is doomed.
1
u/ignxcy Nov 23 '23
You can't
1
u/NightWng120 Nov 23 '23
Esc
:!sudo shutdown now
It's the only way
1
u/emerson-dvlmt Nov 23 '23
You have to learn programming directly in binary first πππ
1
u/antonpodkur Nov 24 '23
You will be using it for the rest of your life
1
u/teskilatimahsusa87 Dec 01 '23
You can't. This is why we are still using linux.
0
u/[deleted] Nov 18 '23
[deleted] β view deleted comment
1
u/[deleted] Nov 21 '23
[removed] β view removed comment