• palordrolap@fedia.io
          link
          fedilink
          arrow-up
          37
          ·
          2 days ago

          The SI prefix thing stems from a joke anyway. Allow me to trot out the etymology again:

          Once upon a time in the 1980s, there was created a program for reading ELectronic Mail called Elm.

          Someone created a rival mail reader called Pine, which followed both the tree pun as well as the fact it was a recursive acronym: “Pine is not Elm”.

          Pine had an editor called the Pine Composer or Pico for short. Pico is both a typographical term as well as an SI unit. They may have been going for both. Too perfect a pun to pass up, perhaps.

          Due to licensing uncertainty, someone else created a from-scratch clone of Pico called Nano, cementing the continuation of puns, but in the SI direction.

          And then apparently someone else has decided to get on the bandwagon with Micro.

      • palordrolap@fedia.io
        link
        fedilink
        arrow-up
        6
        ·
        2 days ago

        At the risk of invoking the ire of two communities, why shouldn’t we think of Micro as Emacs but with Lua instead of Lisp?

        • drosophila@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 day ago

          I don’t know how Micro works, and I don’t actually use emacs day to day, but as I understand it emacs works a bit like:

          • When you press a key in emacs it invokes a Lisp function that takes as arguments the text buffer that has focus, the parameters of the ‘window’ into that buffer, and the cursor position in that window.
          • This is the case for any key you press in any context, even for typing normal letters.
          • A ‘mode’ in emacs is a set of bindings which associate specific keys with specific functions.
          • ‘modes’ can be stacked on top of each other, with higher modes being able to intercept key presses before they reach lower modes, and changes / manipulate lower modes (I think?)
          • All of the editor’s functionality, such as ‘search’ or ‘undo’, is implemented in that way.
          • All of this is completely customizable, so pressing a key combo can be made to do virtually anything or manipulate the rest of the editor’s systems in any way.

          Does Micro work anything like that?

          • flamingos-cant (hopepunk arc)@feddit.ukOP
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            1 day ago

            A ‘mode’ in emacs is a set of bindings which associate specific keys with specific functions.

            Not quite, a mode is basically a lisp function defined with a different macro that integrates it into the various systems (like showing up in the modeline when active). It can do basically anything, including setting keybinds.

            ‘modes’ can be stacked on top of each other, with higher modes being able to intercept key presses before they reach lower modes, and changes / manipulate lower modes (I think?)

            No, a keybind can only run one function and what that function is is whatever last defined a binding for that key. Like, if one mode defines a key to be something and you activate another that also binds that key, the latter takes over.

            Emacs does have something like you describe, where functions can be ‘advised’.

    • macniel@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      One thing that irks me a lot is that you save in nano with ^O why!? How does O relates to saving?

    • Jankatarch@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      On one hand autocompletion is nice when I want to use a language instead of learning it.

      On the other hand I am in the middle of my learning phase.

  • tuckerm@feddit.online
    link
    fedilink
    English
    arrow-up
    23
    ·
    2 days ago

    Emacs is real whether you like it or not.

    (Also I go past one of these billboards about once a week, and I’ve always been so curious about how many calls they get. Or what they say when you call. I should get a Google voice number and check it out.)

        • mostlikelyaperson@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 day ago

          Esc :q for closing if you didn’t modify anything, :!q for closing and discarding any changes you made and:wq for closing and writing the changes to the file.

          • cepelinas@sopuli.xyz
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            1 day ago

            I was joking I know how to exit because of sudoedit it just feels like it should be on the main screen like nano or atleast ctrl+c should exit.

            • expr@programming.dev
              link
              fedilink
              arrow-up
              5
              ·
              edit-2
              18 hours ago

              Ctrl-C absolutely should not exit. There’s plenty of times you want it in vim to interrupt something in the editor.

              As others have said, it’s on the screen if you open vim without a file. Otherwise, it’s a tool for people that bother to learn how to use it. As someone who has been using it daily for the last 10 years, I would find it incredibly obnoxious to have a bunch of useless screen clutter telling me basic things that are easily learned.

                • expr@programming.dev
                  link
                  fedilink
                  arrow-up
                  4
                  ·
                  1 day ago

                  Vim has an entire dedicated scripting language built right into the editor and accessible while editing.

                  Even without plugins, sometimes certain things can be too slow and you want to stop them.

            • ewenak@jlai.lu
              link
              fedilink
              arrow-up
              3
              ·
              1 day ago

              If you start vim without opening a file it’s written on the screen in the beginning. It disappears as soon as you start writing something though.

              • cepelinas@sopuli.xyz
                link
                fedilink
                arrow-up
                1
                ·
                11 hours ago

                If you had read the other rssponse about basically the same thing you would know that the last time when I accidentally went into vim it didn’t show it for me and infact it probably was vim-tiny. I am sorry for sounding condesending.

        • expr@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          15 hours ago

          It’s a tool with a medium-high skill floor and incredibly high skill ceiling. It rewards investment and is something that is able to accommodate one’s growth in skills rather than holding them back with limitations like typical editors do. Its built-in scripting is a big part of that and is something that really sets it apart from editors like vscode. And it’s much, much faster and lighter weight/less memory-intensive than other editors.

      • Neverclear@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        11
        ·
        1 day ago

        Here here. vim with syntax highlighting on an 80x20 tty with monospace font… I don’t know If I’m more productive than the next guy, and I don’t care. This is my happy place.

    • martinb@lemmy.sdf.org
      link
      fedilink
      arrow-up
      8
      ·
      1 day ago

      It’s my go to editor wherever possible.

      Learn the keybindings, play a few vim games and install an opinionated suite of plugins like lazyvim.

      Before you know it, you too will curse every other editor in existence which doesn’t at least offer vim keybindings 😄

      • gandalf_der_12te@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 day ago

        the problem with custom keybindings i have is i work on a lot of different machines (i used 3 different desktop computers yesterday) and keybindings presumably only work on my machine.

        • expr@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          15 hours ago

          That’s why vim is so great: it has a ton of power built right into it without customizations, and it’s already installed on basically any unix-like system. Unlike, say, vscode, it can do a ton of stuff out of the box without any plugins at all.

        • expr@programming.dev
          link
          fedilink
          arrow-up
          6
          ·
          1 day ago

          It’s simply muscle memory. You think of the action and your fingers do it faster than you can consciously think of where they need to go. But I also use a split ergonomic keyboard (the Iris) and have symbols accessible from home row behind a layer. Though I can switch to a standard keyboard as needed too.

          • 418_im_a_teapot@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            20 hours ago

            I’ve long wanted a keyboard like that as someone who just writes code all day everyday. But my fear is that I’ll get stuck on a regular keyboard, like when I’m traveling, and just be completely helpless having forgotten how to type normally.

            • expr@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              18 hours ago

              It’s not as big of a deal as you might think. You still have a lot of your muscle memory from regular keyboards. It might take a little while to adjust when switching between the two, but it’s not that bad.

              If you switch between the two enough, you can actually type on both equally well.

          • Jumuta@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            oh that’s cool, how do you do home row modifiers like that?

            do you use that for normal typing as well or is it just for symbols?

            • expr@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              1 day ago

              A lot of mechanical keyboards these days are programmable using QMK Firmware. I actually use https://www.caniusevia.com/ instead though, which uses (a subset of) QMK under the hood but allows programming the keyboard via a Web app on the fly.

              For my layout, I have the standard QWERTY layout for the unmodified layer (layer 0, holding no keys). Then I can hold down a thumb key for switching to a different layer, which has things like symbols, F1-F12, Home, End, etc. The layout I use isn’t too far off the default Iris layout, just a few tweaks here and there (like one that allows me to hold a key for control, or tap that key for escape).

          • pmk@lemmy.sdf.org
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            I have a swedish keyboard because I am swedish, we have three extra letters compared to the english alphabet. Which means that the standard swedish keyboard layout had to tuck away some symbols into very awkward places using AltGr to type. Programming and using Vim is a bad experience with a swedish keyboard imho.

  • ジン@quokk.au
    link
    fedilink
    English
    arrow-up
    13
    ·
    2 days ago

    I’ll try emacs as soon as I find something that isn’t already perfect with vi

  • Peacepath@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 day ago

    Some unspecified promises of confort later, or freedom now and forever? Of course I do not go anywhere but remain at that holly Gnu Emacs !