• @SzethFriendOfNimi
    link
    41
    edit-2
    1 year 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
      link
      fedilink
      English
      201 year ago

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

    • TurboWafflz
      link
      161 year 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

      • CubitOom
        link
        fedilink
        English
        101 year ago

        You could always use emacs with evil-mode to have vim key bindings

      • @SzethFriendOfNimi
        link
        41 year ago

        For me vi was my first experience with it.

        So yeah, I think it’s often about what you’re used to

    • Yer Ma
      link
      fedilink
      11
      edit-2
      1 year 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
        link
        English
        31 year 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 😂

      • @[email protected]OP
        link
        fedilink
        01 year ago

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

    • @[email protected]
      link
      fedilink
      English
      101 year 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.

      • @[email protected]
        link
        fedilink
        6
        edit-2
        1 year ago

        WQ = Write and Quit Q! = quit and do nothing else

        Multiline cut, copy, paste is where I forget commands.

        • CashewNut 🏴󠁢󠁥󠁧󠁿
          link
          11 year ago

          Multiline cut

          I just use visual edit mode. Or 5yy for copy 5 lines. Paste is easy - p.

          I’m shit at navigating and anything with the “g” command. I never bothered learning that.