• FriendBesto@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    4 days ago

    On my laptop, I update my bashrc on Excel, in Wine, then export it as a PDF, OCR to .md, Pandoc it to an .Org, and then finally, write it down on paper and re-type it on my phone’s Termux’s Emacs instance, then TRAMP it to my PC, in the other room.

    I use biebian, btw.

  • AnUnusualRelic@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    The first time I found myself in nano was when testing a distro fifteenor twenty years ago. I had to edit some files and it was the only available editor. The damn thing was a horror to use. I still have no idea who it caters to. I haven’t had to use it since though.

    • SomeLemmyUser@discuss.tchncs.de
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      13 days ago

      Dunno what you used, but nano is literally a text editor that may be simple simple but it just works. Shortcuts are shown to the user, buttons work like you expect them to (arrow keys, ESC, shift, etc)

      With vim you open it and if you haven’t read 5pages of doc you won’t even be able to close it again. I see that its useful for power users, but for casuals who just want to edit a config once in a while nano is absolutely the way to go imho

      • AnUnusualRelic@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        13 days ago

        It’s not that simplle or user friendly when none of the usual shortcuts work. C-a did something completely unexpected.

        • SomeLemmyUser@discuss.tchncs.de
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          12 days ago

          Well its shown to you at the bottom of the screen what it does…

          And if you want Ctrl v,c,s etc. To work like in word etc you can always use nano --modernbindings

          • AnUnusualRelic@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            12 days ago

            They’re in Linux now, it should show the shortcuts they’ll encounter everywhere. Not leftovers from another system.

  • m4m4m4m4@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    The problem I had with nano is that, for the time being, it was supposed to be easy to use. With that in account I always get lost when saving a file and closing the thing because one’s used to doing something else with Ctrl+O and Ctrl+X.

    Whereas with Vim (and Neovim for a little while, and now with Vis) I knew it had a steep learning curve from the start so I always had it in mind. And all the funny stories about quitting vim.

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      13 days ago

      they’ve changed those bindings now, Ctrl+S, Ctrl+X, Ctrl+V, and Ctrl+C all do what you think they do

        • tetris11@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          13 days ago
          • nano

            • Ctrl-Q search backwards
            • Ctrl-S and Ctrl-X is save file
            • Ctrl-V is scroll down
            • Ctrl-C is cancel or info
          • nano --modernbindings

            • Ctrl-Q quits
            • Ctrl-S is save file
            • Ctrl-X is cut
            • Ctrl-C is copy
            • Ctrl-V is paste
      • m4m4m4m4@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        13 days ago

        Great, now the next time I use nano I surely will forget about this and get frustrated when trying to save a file with Ctrl+O

        • tetris11@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

          you still can, but I think Ubuntu and other prepacked distros will switch soon to the better bindings

          • socsa@piefed.social
            link
            fedilink
            English
            arrow-up
            0
            ·
            13 days ago

            Great so now I will mangle all my merge commits depending on which version the host is using.

  • unknowing8343@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    In every post of this kind I am amazed at so many people using nano instead of micro which is SO MUCH BETTER while being the same thing at the same time.

    • skittlebrau@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      Nano is more like fast food. It’s easy and convenient, but it makes you feel a little guilty and dirty afterwards.

      • ggppjj@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        12 days ago

        Nano is the tool that people use when they don’t have a need for TUI editors in general and therefore don’t want to have to memorize how people with teletypes decided things should have been done 75 years ago and who also don’t want to get dragged into endless pointless bickering arguments about which set of greybeards was objectively right about their sets of preferences.

        I’m glad people enjoy the editors they use and also I just wanna change a single fuckin line in a config file every once in a while without needing to consult a reference guide.

        • wise_pancake@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          12 days ago

          I don’t have much to say about nano, except the hotkey bindings are weird and unnatural.

          They make sense, but they feel wrong.

    • sping@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      13 days ago

      And yet Emacs users don’t fight vim users. Emacs users decided vim’s interface was pretty cool and added it to Emacs. Somehow people still call it a war though.

      • kata1yst@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        Bruh 😂 the Emacs user community absolutely constantly shit on Vim users. When they added Vi(m) bindings they literally named it ‘evil mode’, and they constantly make fun of people who use it, and spacemacs, and the latest flavor of (neo)vi(m), and all the extensions necessary to make vim halfway useful as an ide, etc etc etc.

        • sping@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          13 days ago

          Which Emacs community? I’ve been following it for ages in a few places (Reddit is the most common) and I literally do not encounter any of that. Calling it evil was humor - as if people who went to all the bother making it would be trying to push people away…

          Using the evil package is very popular and often recommended, which means literally using it like vim, but with all the Emacs ability on top. I don’t know what on earth you’re talking about.

          • Opisek@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            12 days ago

            How close to vim’s functionality is evil mode? I’ve been toying with the idea of learning Emacs but I rely on Vim’s langmap and that is rarely implemented in Vim emulations / bindings.

            • sping@lemmy.sdf.org
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              12 days ago

              Although I came from vi (pre-vim and pre-evil) and still have the muscle memory, I don’t and haven’t used it myself.

              I hear it described as a “nearly complete” and “very comprehensive”. There is definitely a solid community of people using and enjoying it, but on the other hand there are always some reports of getting tired of having to work through, and sometimes extend, an additional interface layer, so in the long run being happier to just adopt the default bindings.

              I know there are a few areas where trying to follow common vim workflows doesn’t work as well. Historically the performance of line number display been weak in Emacs, though I believe it’s recently much improved. A lot of people seem to make heavy and constant use of it in vim but conversely for me (and I think it’s more common in Emacs) it’s only an occasional, transient need when some external log or error quotes a line number, so I have them only displayed when I hit the go-to-line binding.

              Overall, I think the most frustrating issues people have trying to adopt Emacs from vim are due to trying to impose their specific familiar vim workflows. The most obvious example is people concerned with startup time, but for more typical Emacs workflows it’s a non-issue. Users typically stay in Emacs rather than jumping in and out of it from a terminal (and if you really want that workflow, you run one instance as a daemon and pop up a new client to it instantly). My Emacs instance’s uptime usually matches my computer’s uptime.

              The draw of Emacs is not about it only being an editor so much as a comprehensive and programmable text environment. It is a lisp-based text-processing engine that can run numerous applications, the primary being an editor (the default, or evil, or others…) but also countless other applications like file managers, VC clients, subprocess management and many others. It 95% replaces the terminal for me, and many other tools. So it’s the environment through which you view and manipulate all things text that is very accessible to modify and extend to fit your needs. Hence the joke about it being an OS is pretty apt, though to believe it needs a good editor implies vim isn’t a good editor ;).

          • kata1yst@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            12 days ago

            Oh to be clear, it’s all humor. At least mostly, I’m sure there are RMS level fanatics somewhere that truly believe some of the BS.

            This is something as old as time. I’ve seen it prolifically on Reddit (though not in the Emacs community, they generally discourage memes), various Linux forums, old Usenet, various programming forums… I’m not trying to be evasive, but it’s hard to provide examples that aren’t specifically cherry picked, which wouldn’t benefit the conversation much.

            There’s even a Wikipedia page dedicated to this: https://en.wikipedia.org/wiki/Editor_war

          • wise_pancake@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            12 days ago

            Same here.

            The biggest diss I have on emacs users, as a vim user, is that emacs is the only text editor where people routinely need to keep a book about it on their desk!

            I used to work with a bunch of emacs guys and they all had an emacs book or two on their desk or as a monitor stand. They usually also had one on awk and/or Perl to go with it.

            I’m sure they’d probably make fun of me for being unable to edit a file with anything but my specific vim config, which is not compatible with any other human’s vim config.

            (I would never seriously judge someone on their editor, but I will bust an emacs users chops and accept a good natured jab back)

        • G0ne@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

          Evil or the extensible vi layer is super popular and improves the one area that emacs was lacking i prefer the emacs keybinds but have never seen peeps chat shit about it

  • blazeknave@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    I spent the weekend failing to make my civ mods work, with a thousand lines of notes… 2/3 in, I think “damnit blazeknave. You spend months perfecting this stupid fucking obsidian setup, and you’ve been here in notepad+ like a fucking jabroni.”

    • linearchaos@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      13 days ago

      I do the same all the time with anytype.

      I dropped notes into sublime and then go back and put them neatly into any type. I don’t really know why I do it either It takes any type a total of three or four seconds to start up and I have to enter in a passcode. But I only have to do it once. I guess I do have to think about where I’m going to put the document and making sure that it’s tagged correctly, it’s a lot easier just a scribble something into a random text window to forget about for a decade.

      • blazeknave@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        12 days ago

        You mean my 6k Gmail drafts? 😭

        I started doing paper pads everywhere and trying to log at end of day.

  • pedz@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    Sometimes you don’t even have the luxury of nano. Any moderately advanced Linux user should probably learn the basics of vi. Just knowing how to insert text and save it can fix a system that’s stuck in recovery. Even if it’s just to add a comment in front of a line in a config file.

    • Mactan@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      Sometimes you don’t even have the luxury of vi. Any moderately advanced Linux user should probably learn the basics of sed. Just knowing how to insert text and save it can fix a system that’s stuck in recovery. Even if it’s just to add a comment in front of a line in a config file.

      • Transtronaut@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        13 days ago

        In a professional context, you might end up on servers that don’t have nano installed, but do have vi. Or if you’re helping out a friend on their laptop, they might not have the same software as you. Or if you often end up tinkering with random devices and/or setting up new systems it might be tedious to install the same applications every time.

        It’s basically an argument for learning the very basics of the most common editors so you have flexibility no matter where you end up. Even when you have the ability to download and install your preferred software, it’s still an extra step that might not be desirable for a variety of reasons. But if it’s just your own personal device, I see no problem with just installing whatever you prefer and running with it.

        EDIT: Personally, I find that I don’t end up using those other editors often enough to remember the abstruse commands of tools like vim, so I’m not worried about it. When it does happen, 99% of the time I can just whip out a smartphone and look up the directions for the n-dozenth time.

      • pedz@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        13 days ago

        Not in rescue mode. If you can’t mount your root partition because something was fudged in /etc/fstab, for example, you may be stuck in recovery and depending on your distribution, it may not have nano in that minimalist mode.

        For me it also happens when I install a VM of Debian using the small image, on my dedicated server in a data center. The company hosting the server requires a special network configuration and AFAIK, there’s only vi. So i need to use the console to access the VM and from there, edit /etc/network/something with vi to setup the network. Once done I can reboot and install the rest of the software over the network, including nano.

        I’ve been using Linux for more than two decades. Before nano I was using pico, but it also required to have pine/alpine installed. So knowing the basics of vi has often been helpful over the years for me.

        Maybe it’s because I like tinkering with VMs and SBCs, and most people will not encounter situations where they don’t have nano, but it can happen. And you’ll be glad to know at least “i” and “:wq!”.

  • bluewing@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    Emacs users laughing at VIM users.

    Emacs - A pretty good OS you can use as a text editor.