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

I gave up and held down the power button

  • @Saledovil@sh.itjust.works
    link
    fedilink
    English
    151 year ago

    It’s <Esc>, ‘:’ ‘q’ <Return>. ‘Esc’ to return to normal mode. ‘:’ to begin entering a command, ‘q’ to actually quit, and <Return> 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’ <Return>, while in normal mode, to save the file first. Writing and quitting can be combined into ‘:’ ‘w’ ‘q’ <Return> to save and quit.