this post was submitted on 27 Dec 2023
137 points (74.6% liked)

linuxmemes

21291 readers
1376 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] JGrffn@lemmy.world 2 points 10 months ago* (last edited 10 months ago) (10 children)

    Serious question. Why? No, for real, why? Why are these hard to understand editors still the default on most distros and flavors? Why haven't they reinvented themselves with easier to understand shortcuts?

    I get the feeling my comment will attract heat, but I'm a web dev, studied comp Sci for years, have worked for nearly a decade and have spent over half my 30 year old life using computers of all sorts. I'm by no means a genius and I by no means know enough about this or most tech subjects, but I literally only knew how to close vim with and without saving changes in a recent vim encounter, purely due to a meme I saw in this community a few days prior, and I had already forgotten the commands by the time I saw this post. Nothing about vim and alternatives feels intuitive or easy to use, and you may say it's a matter of sitting down and learning, which you can argue that, but you can't argue this isn't a bit of a gatekeeper for people trying to dip their toes into anything that could eventually rely on opening vim to do something.

    I won't try to deny its place in computer history, or its use for many, or even that it is preferred by some, but when every other software with keyboard shortcuts agrees on certain easy to remember standards, I don't quite understand how software that goes against all of that hasn't been replaced or hasn't reinvented itself in newer versions.

    Then again, I have no idea what the difference between vi, vim, emacs, and nano are, so roast away!

    [–] voidMainVoid@lemmy.world 12 points 10 months ago (1 children)

    Some people like vim the way it is. That's why they haven't re-invented it. If you want to use a more intuitive text editor, there are plenty available (such as nano or micro).They don't need to turn vim into a clone of something that already exists.

    As for why it's still the default... It's the same reason why everybody uses QWERTY keyboards when Dvorak is clearly superior. People already know how to type with QWERTY and they don't want to take the time to re-learn with a new layout, change their workflows, etc.

    It isn't universal, though. Garuda Linux defaults to micro. The web dev boot camp I was in didn't bring vim up at all! We only used nano! I think that was a disservice to the students, but the instructors must've thought that it would be too confusing.

    [–] burgersc12@sh.itjust.works 0 points 10 months ago (2 children)

    Dvorak is clearly superior? Prove it

    [–] voidMainVoid@lemmy.world 5 points 10 months ago (1 children)

    One word: ergonomics.

    With Dvorak, the most commonly-used letters are on the home row. In fact, all of the vowels are on the home row.

    The most common letter in English is E, and QWERTY makes you reach for it. You know what IS on the home row? Fuckin' semicolon! Can you even remember the last time you used a semicolon?

    I spend a lot of time at work sitting, so I'd rather have a comfortable chair than an uncomfortable chair. Same with my keyboard: I'd rather have a comfortable layout than an uncomfortable one. Less risk of repetitive strain injury, too.

    [–] 123@lemm.ee 2 points 10 months ago

    Can you even remember the last time you used a semicolon?

    Database Administrators have entered the chat.

    [–] bisby@lemmy.world 4 points 10 months ago* (last edited 10 months ago) (1 children)

    https://www.youtube.com/watch?v=188fipF-i5I

    This video goes over a lot of metrics about how far you have to move your fingers to type certain things, and how we wound up at qwerty in the first place. The truth of it is though: different layouts are better for different things. He shows in the video a bunch of keyboard layouts optimized for things like youtube comments, the script of the Bee movie, wikipedia, etc.

    At 7:12 in the video, he cites Dvorak as 26.2% more efficient than qwerty for how much your fingers need to travel to type. This covers letter frequency, but also sequencing (ie, typing the letters "un" on qwerty means i have go from top row U to bottom row N with the same finger).

    I don't use dvorak, because if I want to use someone else's computer, I don't want to have to fight with muscle memory, but it is "superior" in many ways.

    [–] taladar@sh.itjust.works 3 points 10 months ago

    The main downside of Dvorak and why I will never use it is that virtually all programs designed their keyboard shortcuts around the positions of QWERTY keys and remapping literally everything makes no sense.

    [–] AngryCommieKender@lemmy.world 11 points 10 months ago

    Then again, I have no idea what the difference between vi, vim, emacs, and nano are, so roast away!

    Lol. Git Gud, Noob.

    [–] azertyfun@sh.itjust.works 6 points 10 months ago (1 children)

    Is vi still the default? On Debian it sure isn't, nano is the default and has been for years, and I can only assume the debian derivatives have all followed suit. That'd already be most new installs taken care of.

    If you find something that opens vi unexpectedly, double-check $EDITOR's value then file a bug report and tell them to follow $EDITOR.

    [–] taladar@sh.itjust.works 3 points 10 months ago

    Just to add to that some programs also use their own variable like GIT_EDITOR, SVN_EDITOR,...

    [–] bitwaba@lemmy.world 6 points 10 months ago

    As a ~20 year vim user, and by no means a proficient power user (any time I end up in recording mode, I just mash ESC repeatedly until this start behaving normally again.), I think it's just "it's easier for someone that doesn't know how to use it to learn, than it is for everyone that already knows how to use it to relearn".

    Like the damn scroll options on laptop trackpads. Multitouch scroll down = scroll down. Then someone decided it needed to match the way phone scrolling works after smartphones became popular, so now there's lots of scroll down = scroll up software behavior. But the options are still there to behave neither way. If you don't like the vim commands, you're free to install something that behaves in a way that you expect. If you do like vim commands, install it and get the behavior that users have come to expect for the last 20+ years.

    [–] johannesvanderwhales@lemmy.world 5 points 10 months ago

    Because vim (and emacs too!) is a powerful editor that works purely on command line and most people who are experienced in the Unix world are generally familiar with it. There are plenty of easier editors to use, like nano, that are also widely distributed and you are free to change your default. Being really powerful but you kind of need to know what you're doing is basically unix's whole thing.

    [–] rtxn@lemmy.world 5 points 10 months ago* (last edited 10 months ago)

    To ensure the Unix-like standard of maximum backwards compatibility. Vi (the original, before Vim) was made in an age where computer keyboards might not have had luxury features like arrow keys, but did have alphanumeric keys and minimally competent users. It has worked for almost half a century, so unless you're Microsoft, why would you change it?

    Even today, many people prefer it because you don't have to move your hand far away from the home row while typing or navigating, and the modality gives the user a much greater toolkit (seriously, I just about nutted when I discovered d i "). Not having to rely on modifiers and the arrow keys also reduces the risk of the repeated stress injury known as Emacs pinky.

    [–] marcos@lemmy.world 3 points 10 months ago

    Nano is the default on Debian for more than a decade. Maybe two. I don't think vim is the default on any largely use distro now.

    Are you actually asking why people use them?

    [–] burgersc12@sh.itjust.works 2 points 10 months ago

    I guess some people really like the features. Imo Micro/Nano are much easier to use than Vim

    [–] pipows@lemmy.today 1 points 10 months ago

    Why are these hard to understand editors still the default on most distros and flavors

    I think nano is usually the default nowdays. Nano os pretty minimal and has it's keybinds always on display so you don't need to memorize them.

    Why haven't they reinvented themselves with easier to understand shortcuts?

    Nothing about vim and alternatives feels intuitive or easy to use

    (Neo)vim doesn't need to reinvent itself to be more accessible, because it does what it does very well. I'm a web dev and have used vscode like anybody else for a long time. I decided to try neovim because vscode was performing badly, but kept me using it because of how good the developer experience is. Once you learned how to use it, there is just nothing better.

    but when every other software with keyboard shortcuts agrees on certain easy to remember standards, I don't quite understand how software that goes against all of that hasn't been replaced or hasn't reinvented itself in newer versions

    In a way, it has been replaced. Most people will use a user friendly IDE and ignore vim. The thing about vim is that it does things in a fundamentally different way than any other editor, so reinventing itself would mean loosing everything that makes it good, then you better off using something else.

    Then again, I have no idea what the difference between vi, vim, emacs, and nano are

    Nano is a simple, easy terminal text editor; vi, vim and neovim are three versions of the same quirky and hard, but very good text editor/IDE; emacs is a quirky, but kinda bad editor that has amazingly good extendability.

    [–] lseif@sopuli.xyz 1 points 10 months ago

    i mean.... skill issue 🤷