I’m trying out Obsidian for taking notes, and this made me laugh.

    • SatanicNotMessianic@lemmy.ml
      link
      fedilink
      arrow-up
      67
      ·
      1 year ago

      One of my first computer jobs was working in a student computer lab at my undergraduate university. This was back in the mid 90s-ish.

      We had three types of computers - windows machines running 3.1 or whatever was current then, Macs who would all do a Wild Eep together when they rebooted en masse, and Sun X Windows dumb terminals that were basically just (obviously) unix machines for all intents and purposes. This was back when there were basically like 5 websites total, and people still hadn’t heard of Mosaic.

      So everyone wanted the windows and Mac boxes, and only took the xterms when there was nothing else open. I was the primary support person for them since none of the other people wanted to learn Unix and I was the only CS major.

      The X boxes suffered from two main learning hurdles. One was that backspaces were incorrectly mapped into some escape key sequence, and the other is that it would drop you from (I think) pine into emacs as a mail editor as soon as you hit it. 90% of my time was telling people how to exit emacs. It was that, putting more paper into the printers, and teaching myself more programming than I was learning in classes.

      • lolcatnip@reddthat.com
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        God, I remember the backspace thing. I hope whoever allowed a computer to be shipped in that condition got fired.

      • modeler@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year ago

        My god that brought back memories. The first commands when sitting at a new terminal was always, always:

        stty sane

        stty erase '^H'

        It was well into the 2000s before Unix had useable defaults.

  • psud@aussie.zone
    link
    fedilink
    arrow-up
    80
    arrow-down
    4
    ·
    1 year ago

    If anyone needs the command: :q!

    If you want the computer to ask if you’re sure: :q

    If you want to save: :wq

  • psycho_driver@lemmy.world
    link
    fedilink
    arrow-up
    73
    ·
    1 year ago

    I mean, it’s true.

    I’ve been using linux pretty exclusively at home for almost 25 years now. Program. Script. Work in the shell a lot, and the other day I had to use vim and it took me a while to remember the basic commands. I’m a nano guy :\

    • gornius@lemmy.world
      link
      fedilink
      arrow-up
      19
      arrow-down
      1
      ·
      1 year ago

      Honestly, if you work in a shell a lot, learning vim is a great investment. You’re gonna fly through files editing them faster than with any IDE.

    • DaTingGoBrrr@lemmy.ml
      link
      fedilink
      arrow-up
      16
      ·
      1 year ago

      I also started off using nano. Have you tried Micro? It’s like nano on steroids and with good keybindings

      • dan@upvote.au
        link
        fedilink
        arrow-up
        12
        ·
        1 year ago

        At some point Nano added Ctrl+S for save. That’s all I needed. Its syntax highlighting is decent too.

      • pascal@lemm.ee
        link
        fedilink
        arrow-up
        11
        ·
        1 year ago

        Nano, Pico and Micro? is this editor trying to !compensate for something?

    • flop_leash_973@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      edit-2
      1 year ago

      I’m with you on that. VIM is a good example of a tool that the deepness of the tool makes it aggravating to use for the 90% of simple use cases.

      Unless you use VIM enough for the shortcuts to be second nature it is faster to install Nano, make the changes, and remove Nano than it is to use VIM.

    • BestBouclettes@jlai.lu
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      If you feel like it definitely give it another go. Vim (or neovim) is just insanely good once you’ve developed the muscle memory for the keybinds.
      It takes a bit of time and practice but it’s actually fairly user friendly once you understand how it works. (c for change, y for yank, p for paste, e for end, b for beginning etc.)

      • Ignotum@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        I was a nano person for the longest time, was planning to try out vim but never did, until i saw a coworker using it and he explained a little about the vim “language” actually worked and how much you could do with it

        With some encouragement from him and a week or two of reduced productivity i was able to do everything just as fast in vim as in nano, and it only got better from there, now i find any other editor slow and tiresome in comparison

      • pimeys@lemmy.nauk.io
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        If you want something that is quite a nice editor too but doesn’t require hundreds of lines of configuration, try helix. It also has nice help menus so it’s fast to learn. I’ve used vim since the 90’s and Emacs for many years, but nowadays I kinda just like hx how it just works with zero configuration for any programming language I need to work with.

    • marduk@lemmy.sdf.org
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      1 year ago

      I like nano because it has worked any time I needed it. I don’t dislike nano because I’m not good enough at Linux to have ever run into its limitations

    • locuester@lemmy.zip
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      nano gang checking in.

      However, I’ve been forced over time to remember “:wq” to get unstuck should vim randomly appear.

      • bioemerl@kbin.social
        link
        fedilink
        arrow-up
        8
        arrow-down
        2
        ·
        1 year ago

        Vim really is an IDE, not a text editor. It’s usable as an editor but overkill.

        Nano serves a difference purpose. It’s like telling someone on a bike that a mustang is better.

        • Slotos@feddit.nl
          link
          fedilink
          arrow-up
          8
          ·
          1 year ago

          Nano is for those that occasionally edit text files from a terminal.

          Vim is for those who make a living out of it.

          • Captain Aggravated@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            There’s a guy on Youtube who does programming language tutorials/demonstrations. Like he starts out with C++ and in one hour you’re at object inheritance, crash courses I guess is the term for them.

            He did one video that was as much a Vim tutorial as a tutorial for this language. “Press 3k, then enter, then i, and type “std::out(“whatever C syntax is”)” and then hit escape and…”

            For teaching something like a little bit of Python or a little bit of Bash or whatever, I’d rather use Nano, because you can learn how to use it in seconds. Vim is an amazing tool but lord don’t try to cram a Vim tutorial into another already technical tutorial.

        • timbuck2themoon@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          6
          ·
          1 year ago

          If you edit files a lot vim is worth its weight in gold. Nano makes me want to kill myself as everything takes so much longer.

          Nano is perfectly sufficient for a very rare edit.

          • bioemerl@kbin.social
            link
            fedilink
            arrow-up
            5
            arrow-down
            1
            ·
            1 year ago

            Vim absolutely chews through anything you throw at it. Lots of times we need data formated or lots of SQL queries and I’m the go to guy because I understand vim macros.

            Especially if you have any form of RSI.

            I wonder if it would be possible to make a user accessable way to expose similar power to the common user.

        • Kogasa@programming.dev
          link
          fedilink
          arrow-up
          6
          arrow-down
          1
          ·
          1 year ago

          Vim is absolutely not an IDE. It has no integrations with any language. It’s just a powerful text editor. You can add language plugins and configure it to be an IDE.

          • Bo7a@lemmy.ca
            link
            fedilink
            arrow-up
            4
            arrow-down
            1
            ·
            1 year ago

            No offense intended here - But why is this being upvoted?

            vim absolutely is an IDE if that is how you want to use it. Syntax highlighting, linter, language specific autocomplete, integrated sed/regex. And much, much more.

              • naught@sh.itjust.works
                link
                fedilink
                arrow-up
                7
                ·
                edit-2
                1 year ago

                I don’t know that’s a fair anology. Vim does what a IDE can do without almost any setup with LazyVim and Lunar Vim and a bunch other prebaked setups. Instead of writing your vscode config in JSON or using a GUI, you can use lua. It’s more like turning car into a track car or something where you’re already a mechanic

              • bioemerl@kbin.social
                link
                fedilink
                arrow-up
                4
                arrow-down
                1
                ·
                1 year ago

                “You see here my car has positions for all the parts of a boat so it’s easily made into a boat and it’s already waterproof but it’s just a normal car”

            • Kogasa@programming.dev
              link
              fedilink
              arrow-up
              3
              ·
              1 year ago

              Syntax highlighting, linting, and language specific autocomplete are features supported by plugins and scripts. Plain, simple vim is a powerful extensible text editor. The extensibility makes it easy to turn into an IDE.

                • Kogasa@programming.dev
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  1 year ago

                  Yeah, there is a generic syntax highlighting scheme. I had forgotten because it’s not very good for some languages, I’d replaced it with a LSP-based implementation years ago.

          • Frank Müller@mastodon.social
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            @kogasa Hehe, shit, so long done something wrong as I use #vim as an IDE. Okay, some own helpers, some plugins, the direct integration for #golang via LSP and since some time also ChatGPT and Copilot. But hey, it’s no IDE. 🤪

                • Kogasa@programming.dev
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  1 year ago

                  I’m not a text editor. But anyway, would you call a shell script that invokes python.exe $1 a Python IDE? Why would you? Vim isn’t designed to facilitate the use of vimscript, vimscript is just an extensibility feature of Vim.

          • russjr08@outpost.zeuslink.net
            link
            fedilink
            English
            arrow-up
            7
            ·
            1 year ago

            I guess it depends on if you’re the type of person who sees VSCode as an IDE or just a text editor.

            Vim is effectively the same way.

          • bioemerl@kbin.social
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            1 year ago

            Not really, or that doesn’t feel right to my. Word and notepad basically still do the same thing except for that word lets you add style.

            Like a manual vs an automatic car, maybe?

            • frezik@midwest.social
              link
              fedilink
              arrow-up
              2
              ·
              edit-2
              1 year ago

              Word is a WYSIWYG editor. We don’t talk about it much these days because it’s just how things are done, but it took a long time for the industry to come up with a way to display text on screen with rich formatting and have it come out the same way in print. There was a lot of buzz around it in the late 80s and early 90s.

              Word solves a completely different problem than an IDE. Notepad is a raw, minimal tool that could be built on for either WYSIWYG or an IDE.

      • uzay@infosec.pub
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        It just makes a lot of stuff way easier once you know how to use it. Switching out a word for another: two button-presses, duplicating a line: three presses, deleting 500 consecutive lines: five presses

            • nickwitha_k (he/him)@lemmy.sdf.org
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              1 year ago

              How do we work this? Do we alternate between trying to ruin people’s lives with elisp and chasing the perfect .vimrc or lua - config? Maybe grab some bytes from /dev/urandom and send them to the editor whose first letter comes up first? What about holidays?

        • penquin@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          But you can do all that with nano and it is straight forward and you don’t need to memorize any key combinations. I mean, I get it and no judgement here. I just use nano because it’s easy and quick.

          • prismaTK [any,use name]@hexbear.net
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            I think if you just need to edit a config file once in a while, nano is great, but if you’re writing substantial amounts of code, you’ll find vim a lot more capable.

            As long as you’re not a filthy emacs user, we can get along

            • penquin@lemm.ee
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              I write my code in an actual IDE. And I use nano for only, like you said, config files and those little things. And I have never used emacs and I don’t even know how it looks like. I’m dead serious, I don’t even know what emacs is or what it does. lmao

              • nickwitha_k (he/him)@lemmy.sdf.org
                link
                fedilink
                arrow-up
                2
                ·
                1 year ago

                Emacs is basically a lisp interpreter packaged with a suite of “example” utilities, like a text editor. It’s one of the two historical editors used as terminal IDEs, along with vim. Emacs tends to take a more batteries, kitchen sink, web browser, games, IRC client, etc-included approach. It can seriously be closer to an OS in functionality.

          • r1veRRR@feddit.de
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            You can also copy paste by manually copying text by hand, would call that a valid alternative to Ctrl-C/V?

      • r1veRRR@feddit.de
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I don’t understand the need for Ctrl-C/V, when manually copying the text exists. I know it’s snarky, but that’s the level of difference we’re talking about here. Or imagine, to delete a line, someone Right Arrows 50 times, then backspaces 50 times, instead of using the shortcut.

    • The_Walkening [none/use name]@hexbear.net
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      2
      ·
      1 year ago

      100-com% of the time I’m using nano to edit something in the terminal, and it’s usually something really minor. I’m using GUIs for the majority of my computing anyway, so if I need some robust text editing, I’ve got a bunch of easier-to-learn, easier-to-use options available, and that’s totally ignoring things like awk, grep, sed, etc.

      • Troz@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        I made that switch a few months ago just so I could cut, copy and paste without having to lookup how to do it. it’s been great.

    • XEAL@lemm.ee
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      Here!

      I hate terminal-based text editors

      Nano seems quite user/idiot friendly

  • flop_leash_973@lemmy.world
    link
    fedilink
    arrow-up
    41
    arrow-down
    1
    ·
    1 year ago

    A lot of my personal dislike for VIM would be done away with if it just had a helpful common keys cheat sheet (basic cursor navigation, edit mode, exit with and without saving, etc) at the bottom of the editor window like Nano does.

    • redempt@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      one of my favorite things about helix is how easily you can check the keybinds for certain actions - just space-? and then you can see a list of every command available (by description) and their keybinds, if they have one

    • eeleech@lemm.ee
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      1 year ago

      Having the commands listed at the bottom by default is one thing i personally dislike about nano, because they take up space while being useless to someone knowing the commands (or at least knowing how to open the help in, which is what you can do in vim to achieve the cheat sheet). The alternative that vim uses, is to show the commands when starting the editor without opening a file.

    • jayemar@lemm.ee
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      1 year ago

      I understand where you’re coming from, but as a frequent user of vim I’d much rather have the additional line of text.

    • CatLikeLemming@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      Really, I’d just recommend using nano then. It’s installed basically anywhere you can find vim and works perfectly fine as a text editor! To use vim effectively it has a learning curve no matter what, so it’s not necessarily meant for everyone.

  • Daniel@lemmy.ml
    link
    fedilink
    English
    arrow-up
    22
    arrow-down
    3
    ·
    1 year ago

    I think this is the most upvotes I’ve seen on a Lemmy post….

    • A2PKXG@feddit.de
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 year ago

      Lemmy seems to be the old nerdy internet of the 90s, prior to the enshittification

      • Stantana@lemmy.sambands.net
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        I’d say more like the early days of reddit, the hardcore enshittification started around 2012-2015 IMO. The old-school nerds are still at it on IRC, Newsgroups and so on.

  • homura1650@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    1 year ago

    Tricky question, but I think I have a solution:

    :!readlink /proc/$PPID/fd/* | grep “$(dirname %)/.$(basename %).sw” | xargs -I{} rm “{}” ; kill -9 $PPID