this post was submitted on 09 Jun 2023
38 points (100.0% liked)

unix like operating system lovers

2152 readers
1 users here now

This is a community that is only for nerds jk. everyone who doesn't scare when seeing UNIX terminal welcome! rules:

  1. don't make comments that branch out from the main topic too much, at least please somehow relate to it.
  2. retro operating systems, e.g. discussion about them, is strictly forbidden, please make a retro community instead.
  3. please be nice for others.

founded 1 year ago
MODERATORS
 

I tried everything, from Esc, Ctrl-C, REISUB, even ctrl-alt-delete.

I gave up and held down the power button

top 16 comments
sorted by: hot top controversial new old
[–] Saledovil@sh.itjust.works 15 points 1 year ago

It's , ':' 'q' . 'Esc' to return to normal mode. ':' to begin entering a command, 'q' to actually quit, and to send the command. For safety, vim does not allow you to quit without saving. You can either override this behaviour by appending a '!' after 'q', to tell vim to quit without saving, or use ':' 'w' , while in normal mode, to save the file first. Writing and quitting can be combined into ':' 'w' 'q' to save and quit.

[–] nanoUFO@sh.itjust.works 9 points 1 year ago (1 children)

give up and use nano next time :^)

[–] pax@sh.itjust.works 2 points 1 year ago

nano is great, however what if it is not installed and you can't install it for what ever reason?

[–] sz3@sh.itjust.works 5 points 1 year ago

Esc Esc Esc Esc :q!

[–] 10kMoatCarp@sh.itjust.works 4 points 1 year ago

Open a new terminal session to the host, and force kill the other session! Its the only way.

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

:;qigsk?!😋🤤😤💲🥹🤤😎🥹🤔🥴💲

And then you just press the power button.

[–] TheDude@sh.itjust.works 5 points 1 year ago (2 children)

Came here to say this. I just unplug the computer and throw it out!

[–] Seraph089@sh.itjust.works 4 points 1 year ago

I toss some magnets in the case then burn it, gotta make sure Vim doesn't come back for vengeance if I perform the arcane shutdown ritual incorrectly.

[–] PCChipsM922U@sh.itjust.works 2 points 1 year ago (2 children)

I can't believe that there are still people that code in Vim, lol 😂. Not only that, but they encourage others to learn how to use it and code in it... WTF, I get that some people like retro stuff, but that's just plain stupid. Why not code in ASM then, it's retro as well 😂.

[–] mrmanager 4 points 1 year ago* (last edited 1 year ago)

Because it's super fast and beautiful. I use neovim though, not vim. Colleagues are always asking me how i can move around so fast. Well because it's all shortcuts and since the editor responds instantly... It just happens very fast.

It makes it a lot more fun to edit code :)

VS code is also decent but it has that laggy feeling all the time, and it's frustrating.

Red hat Linux still doesn't ship with anything else installed by default (I mean apart from sed) so vi is your only choice if you're in an environment where you're not about to install a package (if repos are even accessible) everytime you log in a new server.

[–] Barbarian@sh.itjust.works 2 points 1 year ago (1 children)

Hopefully terminal-based editors aren't considered too off-topic. Just thought it was funny :)

[–] pax@sh.itjust.works 2 points 1 year ago

they are for UNIX like systems, so no prob!

[–] davefischer@beehaw.org 1 points 1 year ago

Still... better than TECO.

[–] pax@sh.itjust.works 1 points 1 year ago

there's no reason to continue this discussion, cus, I'm locking this thread.

[–] crashmat104@sh.itjust.works 1 points 1 year ago

Don’t even wait for þat shit to shut down normally just hold it down