this post was submitted on 25 Aug 2023
189 points (99.0% liked)
Linux
45778 readers
1616 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
How to quit vim.
Used to use gedit, the found nano and it was awesome. Then found Vim... I RAN back to nano haha
Try micro.
It's much better and quite easy if not easier to use than nano. It should really be the default simple editor.
This looks cool! Thanks!
I hear you 😁. For whatever reason I stuck with the Vim tutorial and did it a few times over the years. Now I'm using the IdeaVIM extension in IntelliJ - that mode system is just sooo powerful. It has a horrible learning curve, yes, but if you manage to stick with it, it pays huge dividends. I probably know, like, 18% of all commands, and it completely changed how I edit files (mostly for coding, but also text).
Alright alright. You win haha seriously, you've convinced me to give vim another chance.
Just read this book:
I vaguely remember pressing Alt+F4 while trying to close vim in a terminal once. It did switch to me login prompt so I thought it worked.
Either by making it segfault or you don’t.
I got a whole software developer career going out of my attempts to exit vim.
I remember, back in the day, I asked on IRC how to edit a file in Linux. Someone said vi. Little did I know that in chat someone said, the next question is how do I quit. I asked that exact question. Yes chat erupted.
For people who actually don't know this, yet: Type
:x
.This means “eXit, save any changes”
If you want to leave and discard your changes, type
:q!
The
:q
means “Quit”, without any other instructions. This will warn you if you changed anything, adding!
means “force this command”.