this post was submitted on 25 Aug 2023
198 points (99.0% liked)
Linux
48390 readers
791 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.
Just read this book:
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.
Use vimtutor. It comes with vim and teaches you to the basic vim commands from within vim.
And don't worry about exiting vim, that's lesson 1.2 :)
Hahaha!!! I actually know how to exit Vim. Had to learn it when setting up a server config on a server that only had Vim installed. Once set up, nano got installed.
This vimtutor looks pretty awesome, and I can't wait to get learning on it. In all honesty, vim does looks super helpful. It's just that I usually use text editors to quickly setup configs, when gui won't do or I'm just done with gui for the moment. During those times, my patience is usually low, and searching how to save or quit or open or do any other basic functionality, reduces that patience further. But vimtutor makes it a point to learn vim when I'm not trying to get in, get it done, and get out. This may work for me. I may actually learn 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.
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.
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”.