• Aneb@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          6 hours ago

          Wdym, shift + colon + wq + enter, will write and quit but dont forget to open the document with sudo

          • Warl0k3@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            6 hours ago

            You’re correct! However I was not genuinely confused, I was riffing on the prior commenter’s joke by giving the satirical vim exit command sequence shift + colon + w + I/O (the power button). The humor derives from both the common shared struggle (indeed, almost a rite of passage) new users have with figuring out how to exit the vim editor from the terminal, and from how turning off your entire system is a very excessive solution to the problem of exiting a single program.

    • Hal@piefed.nz
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      These days vim literally tells you how to quit if it thinks that’s what you’re trying to do.

        • Hal@piefed.nz
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 hours ago

          I just had a play, when you press Ctrl + C like killing the bash process and it says: Type :qa and press <Enter> to exit Vim