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

I gave up and held down the power button

  • Saledovil
    link
    fedilink
    English
    arrow-up
    15
    ·
    2 years 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.

  • nanoUFO
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 years ago

    give up and use nano next time :^)

    • paxM
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

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

  • sz3
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    Esc Esc Esc Esc :q!

  • BarbarianOP
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

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

    • paxM
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      they are for UNIX like systems, so no prob!

  • PCChipsM922U
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

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

    And then you just press the power button.

    • TheDudeA
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

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

      • Seraph089
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 years 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
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        2 years ago

        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@lemmy.today
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          2 years 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.

        • themoonisacheese
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          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.

  • 10kMoatCarp
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

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

  • crashmat104
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    2 years ago

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

  • paxM
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    2 years ago

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