• Match!!@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    easy mnemonic to quit vim: imagine you’re captain Picard in the middle of typing “:3” when Q shows up

    • Crow@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      Or, hear me out, : because you’re doing a command, and then q for quit. Probably make it wq too, to write and quit

      • Cethin@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        4 months ago

        No, that doesn’t make any sense. We need something convoluted so that people don’t remember it next time it’s needed.

        • TheRedSpade@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          4 months ago

          vimtutor, which I believe is installed with vim by default

          Edit: My brain apparently inserted an extra word that made it seem like you were seeking said program. Leaving it though for those wondering in the future.

      • kautau@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        Forgot

        Escape first, because it wants to keep you inside the matrix and you need to tell it you are trying to escape

        q!

        Because you probably don’t want to save whatever you’ve accidentally done to that file trying to quit, and you have to add an exclamation point because unless you yell loudly at vim it won’t listen