this post was submitted on 09 Jun 2023
47 points (98.0% liked)

unix like operating system lovers

2209 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 2 years ago
MODERATORS
47
Send help (cdn.linuxfordevices.com)
submitted 2 years ago by Barbarian to c/unix
 

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

I gave up and held down the power button

you are viewing a single comment's thread
view the rest of the comments
[–] Saledovil 15 points 2 years 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.