this post was submitted on 27 Dec 2023
2 points (75.0% liked)

linuxmemes

28487 readers
953 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 users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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.
  • 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, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    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 remove France.

    founded 2 years ago
    MODERATORS
     
    top 14 comments
    sorted by: hot top controversial new old
    [–] aard@kyu.de 1 points 2 years ago (1 children)

    I always get annoyed when I'm on some system and nano pops up and I need to figure out how to kill that thing.

    [–] jol@discuss.tchncs.de 0 points 2 years ago (1 children)

    Nano literally tells you all the shortcuts to your face.

    [–] aard@kyu.de 1 points 2 years ago (2 children)

    It shows a message which wastes valuable screen estate, especially on low resolution terminals, containing a message I have to read every single time because the keys are not in muscle memory, and never will because the bindings are stupid.

    On systems I have control over the reaction to nano popping up is exiting, removing it, making sure the package system blocks reinstallation attempts, and go back to what I was initially doing in a sane editor.

    [–] nixcamic@lemmy.world 0 points 2 years ago (1 children)

    My man, most of us aren't connecting to our mainframes on VT20s these days. Even on my phone screen the three extra lines nano takes over vi aren't a problem.

    Also if you have the time to go through all that you have the time to learn ctrl+x.

    [–] jol@discuss.tchncs.de 1 points 2 years ago (1 children)

    Sometimes I'm on call and all I have is my 3DS! Stop assuming by maximum screen resolution :'(

    [–] nixcamic@lemmy.world 1 points 2 years ago* (last edited 2 years ago)

    I know you kid but even the 3ds fits a decent number of lines on screen.

    [–] jol@discuss.tchncs.de 0 points 2 years ago (1 children)

    You have so much pent up emotion over a text editor. Life can be so much more my friend!

    [–] dadarobot@lemmy.sdf.org 1 points 2 years ago

    First day on linux?

    [–] JGrffn@lemmy.world 0 points 2 years ago* (last edited 2 years ago) (1 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 1 points 2 years ago

    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.

    [–] EuroNutellaMan@lemmy.world 0 points 2 years ago (1 children)

    If you wanna save changes: :wq

    If not: :q!

    Else: :SpanishInquisition

    [–] youngGoku@lemmy.world 0 points 2 years ago (2 children)

    Why do so many people prefer :wq over :x?

    [–] rwhitisissle@lemmy.world 1 points 2 years ago

    Because :wq to me means "Issue command write, followed by command quit." "Issue command x" to me means nothing in the context of vim, and ctrl + x on most systems is reserved for cutting, so it just "feels" wrong.

    [–] lars@lemmy.sdf.org 1 points 2 years ago

    :x was a gamechanger. And it doesn’t update the file’s modify date if you made no changes.

    Sometimes I just sit back and think about all that saved time and effort so much that I have actually lost time by switching from :wq.