I feel like the images should be switched.
linuxmemes
Hint: :q!
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack members of the community for any reason.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
- These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn. Even if you watch it on a Linux machine.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
Please report posts and comments that break these rules!
If you wanna save changes: :wq
If not: :q!
Else: :SpanishInquisition
Hmm, I didn't expect that last one.
Why do so many people prefer :wq over :x?
Cause I don't like to think about my x
:x
was a gamechanger. And it doesn’t update the file’s modify date if you made no changes.
Sometimes I just sit back and think about all that saved time and effort so much that I have actually lost time by switching from :wq
.
I prefer the extremely intuitive:
[C-R]=system("grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9")
or
i:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9[esc]Y:@"[cr]
It just rolls off the fingers, doesn't it?
Edit: damn it lemmy didn't like my meme because it assumes that characters between angle brackets are html tags :( you ruined it lemmy
EDIT 2: rewrote it, just assume that square brackets are buttons not characters
I always get annoyed when I'm on some system and nano pops up and I need to figure out how to kill that thing.
Very intuitive - Ctrl + X... unlike vim.
Why is Ctrl-X intuitive? Shouldn't it be Ctrl-Q (for "quit")?
CTRL+eXit
In most apps, Ctrl-X means "cut", not "quit". Especially when it's a freakin' text editor!
I will grant you that it's more intuitive than vi, but that is a very, very low bar.
Because it also sends the kill signal in every terminal I've witnessed yet... And you have it right on screen the second you start Nano.
Can you please elaborate on the first part? It is not standard Linux terminal behavior to send the KILL signal on Ctrl+X.
Same. As a vim user I now can't quit nano.
you don't need the !
when you have the w
, because your changes already get saved.
If anything it is dangerous as it will still exit even if changes cannot be saved.
Try editing a file in /etc
as a regular user. It happens sometimes and you really want that warning that the write failed.
Anyway, :x
is superior. It only writes if there are changes. So, your mtime doesn't change unnecessarily.
wait people care about the mtime?
I’ve had to do forensics on a rogue change. In finding when and who actually changed the file, mtime can help narrow it down when compared with wtmp.
There's a button to exit vim on your pc. Just hold it 7 seconds and vim is closed. 😅
it's right next to the turbo button
I love how in the comments on even the most basic vim meme I learn something new
ZZ
:qa!