this post was submitted on 19 Aug 2023
462 points (97.1% liked)

linuxmemes

20776 readers
1725 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
top 27 comments
sorted by: hot top controversial new old
[–] orrk@lemmy.world 24 points 1 year ago (2 children)

HELP! HOW DO I EXIT VIM? i've been stuck here for months, had to create my own browser from scratch.

[–] linearchaos@lemmy.world 4 points 1 year ago (2 children)

The first time I got stuck in VI, cell phones didn't have internet yet. We were a one computer household. I had printed out some instructions on how to modify XF86 configs. I had tried typing out every version of [ESC] I could come up with.

If it wouldn't have been for VI I would have been into Linux probably a decade earlier. It's now my editor of choice but it probably wouldn't have killed them to detect control x and give you a little hint text somewhere.

[–] AffineConnection@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

give you a little hint text somewhere

At least it's not ed: ?

[–] Morphit@feddit.uk 1 points 1 year ago

it probably wouldn't have killed them

It does pop a help message on CTRL C now. Also, Bram sadly died recently. Coincidence?

[–] AffineConnection@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

[ESC]:!pkill -9 ^vi

[–] RickRussell_CA@lemmy.world 14 points 1 year ago (2 children)

People can remember the Konami code but :-q-! is too difficult apparently.

[–] rovingnothing29@kbin.social 3 points 1 year ago (2 children)

Except it doesn't work because you're in edit mode.

[–] freundTech@feddit.de 3 points 1 year ago (1 children)

After noticing that ctrl+c doesn't work he tried typing exit, which put him in edit mode.

[–] kbotc@lemmy.world 1 points 1 year ago

Unless you are on a Mac, then ctrl is META, and META+c gets you to the place where you can :q!

ESC is just too far to deal with when using vi.

[–] BartsBigBugBag@lemmy.tf 0 points 1 year ago* (last edited 1 year ago) (2 children)
[–] Clusterfck@lemmy.sdf.org 4 points 1 year ago* (last edited 1 year ago) (1 children)

Or just use nano and have a built in cheat sheet

Edit: I just realized nano is the gen z text editor for Linux....

[–] rikudou@lemmings.world 6 points 1 year ago

I've used it before gen z was a thing, so no.

[–] buedi@feddit.de 1 points 1 year ago (1 children)

Why do people just don't ESC :x? Do I miss something when not using q!?

[–] forwardvoid@feddit.nl 5 points 1 year ago (2 children)

:x also writes (same as :wq). :q! is force quit. If you accidentally made changes then :q will give an error and :x will write those changes. So :q! Is you safest bet if you need to gtfo.

[–] Morphit@feddit.uk 1 points 1 year ago

ZQ / ZZ ftw.

[–] buedi@feddit.de 1 points 1 year ago

Now that you write it... I use :q! all the time but I did not realize. I guess that is just muscle memory :-)

[–] starman@programming.dev 1 points 1 year ago (1 children)

Or ZZ, more simple and immediately after typing it you start hearing random ZZ Top song.

[–] RickRussell_CA@lemmy.world 1 points 1 year ago

Driving While Blind

[–] hardware26@discuss.tchncs.de 13 points 1 year ago

This joke was made ten thousand times but this version is not low effort. I appreciate it.

[–] nexussapphire@lemm.ee 11 points 1 year ago

When you reboot your computer to exit a program.

[–] wildbus8979@sh.itjust.works 9 points 1 year ago* (last edited 1 year ago)

If you were about to type VirtualBox instead of Qemu or virt-manager, you deserved it!

[–] dmrzl@programming.dev 6 points 1 year ago

Ah shit.. The trash comedy folks made it here after all

[–] MeanEYE@lemmy.world 5 points 1 year ago

This joke is so stale you could make penicillin out it.

[–] aard@kyu.de 3 points 1 year ago

Is he running his system from something like FAT to make executing VI do something useful?

[–] Steamymoomilk@sh.itjust.works 3 points 1 year ago (1 children)

but what about the church of EMACs?

[–] metaStatic@kbin.social 2 points 1 year ago

that's a different operating system

[–] WhiteRice@lemmy.world 2 points 1 year ago