• SzethFriendOfNimi@lemmy.world
    link
    fedilink
    arrow-up
    43
    arrow-down
    2
    ·
    edit-2
    10 months ago

    It’s easy.

    Escape to exit edit mode : to prefix a command
    q to quit
    ! to confirm

    Now emacs… those people are crazy.

    • CubitOom@infosec.pub
      link
      fedilink
      English
      arrow-up
      20
      ·
      10 months ago

      Asking someone to quit emacs when they never tried before is a great method to generate random strings for a secure password.

    • TurboWafflz@lemmy.world
      link
      fedilink
      arrow-up
      16
      ·
      10 months ago

      I used emacs when I first started programming because it was what my dad showed me and I always thought it was easier than vim. Then I used a bunch of other things for a while and mostly use vim now and whenever I try to use emacs I am so confused because it makes so much less sense than vim after actually using both

    • Yer Ma@lemm.ee
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      10 months ago

      I’ve always preferred vi commands, they make sense and are mostly abbreviations or regex, all the other editors have the strangest commands…

      To write and quit in vi :wq

      To write and quit in nano: ctrl-o, confirmation dialog about tmp files, ctrl-x, confirmation dialog about exiting… weird feeling that I didn’t actually save the file… reopen, okay it saved, ctrl-x, confirmation dialog, weird feeling that I accidently edited the file…

      • pete_the_cat@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        10 months ago

        I used nano for years until I forced myself to learn the basics of vi(m), now whenever something opens nano by default it annoys me and I immediately change the editor to vim 😂

      • 0x4E4F@lemmy.dbzer0.comOP
        link
        fedilink
        arrow-up
        2
        arrow-down
        2
        ·
        10 months ago

        Yeah, like Word, you open it, don’t change anything, close, “Do you want to save changes?”… WTF 🤨.

    • MystikIncarnate
      link
      fedilink
      English
      arrow-up
      10
      ·
      10 months ago

      ! = Force

      Meaning quit without saving. If no changes have been made, you can :q and that will work. If you’ve fumbled and made any change to the file, you’ll need the ! to get it to quit without saving.