this post was submitted on 04 Apr 2025
1200 points (97.5% liked)

linuxmemes

24275 readers
1169 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.
  • 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
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] stev3yd@sh.itjust.works 30 points 1 day ago (6 children)

    im still stuck in vi hell... help... cannot exit program

    [–] LostXOR@fedia.io 23 points 1 day ago (3 children)

    Have you tried standing up from your computer and going outside? It's the only 100% reliable way I've found to exit vim.

    [–] Ziglin@lemmy.world 2 points 17 hours ago (1 children)

    Nuh uh, I gave it access to a 3d printer and it boxed me in while I was sleeping.

    [–] techt@lemmy.world 1 points 16 hours ago

    I mean it's on you to manage boxing and unboxing in your projects

    [–] Lembot_0001@lemm.ee 12 points 1 day ago

    Arson is also good.

    I usually shut off the mains.

    [–] TabbsTheBat@pawb.social 11 points 1 day ago

    There's no exiting vi, gotta buy a new computer

    [–] limerod@reddthat.com 5 points 1 day ago (1 children)

    That's why you install Emacs and never look back. Everything you need in one program. No need to exit at all.

    [–] varyingExpertise@feddit.org 3 points 1 day ago (1 children)

    I think there's even an editor in there, at least one of the old greybeards at work said something to that effect.

    [–] limerod@reddthat.com 2 points 1 day ago

    There is, I'm pretty sure of it. But, I can't remember where?!

    [–] drew_belloc@programming.dev 8 points 1 day ago (1 children)

    Dude, just reboot the machine, as long as vi is not autostarting you should be good

    [–] the_crotch@sh.itjust.works 9 points 1 day ago (2 children)

    I added vi to startup and I can't modify my startup items because I can't figure out how to save in vi

    I'm sorry, but i can't save you anymore. I promise to remeber you until my last day on earth

    [–] DickFiasco@lemm.ee 5 points 1 day ago

    Is this what they call a boot loop?

    [–] juipeltje@lemmy.world 4 points 1 day ago (1 children)

    The only thing i know about vi is how to exit it lol.

    [–] GoodLuckToFriends@lemmy.today 6 points 1 day ago (1 children)

    Shit, I'm trying to remember from just the memes. Was it something like :q! or am I misremembering it?

    [–] Laser@feddit.org 8 points 1 day ago

    Yes, :q! in normal mode to exit without saving changes.

    [–] IrateAnteater@sh.itjust.works 4 points 1 day ago (3 children)

    All jokes aside, why do people even bother with vi?

    [–] TabbsTheBat@pawb.social 13 points 1 day ago* (last edited 1 day ago) (2 children)

    Efficiency :3.. if you need to edit text in terminal a lot, getting good with vi/vim can save a decent chunk of time, due to all the keyboard shortcuts it has

    And then other people do it cause the pros do and it's perceived as cool

    [–] prole@lemmy.blahaj.zone 1 points 1 day ago (1 children)

    Why is it better than just using nano or whatever?

    [–] TabbsTheBat@pawb.social 2 points 23 hours ago* (last edited 23 hours ago)

    Basically just the keyboard commands afaik. In vim you move through lines with hjkl keys instead of the arrow keys, and most commands are one letter (because it works through switching modes) instead of needing to hit ctrl for every one. In effect it lets you keep your fingers on the home row at all times which means you can more seamlessly go between moving around to typing, as well as minimizing having to stretch your fingers, so less hurting hands for long editing sessions

    Personally I've not had enough of a need to use vim or vi or any of the other related text editors, so I can't give more concrete examples, but ye :3.. for most stuff and most people nano is gonna be good enough

    [–] Monstrosity@lemm.ee 3 points 1 day ago (1 children)

    People use Vim to look cool?

    It's a brave new World.

    [–] TabbsTheBat@pawb.social 3 points 1 day ago (1 children)

    Well to look "nerd cool" cause admittedly if you even know vim you're like a nerd x3

    [–] quincunx@lemm.ee 1 points 1 day ago

    And about that, whats the best discords for linux people

    [–] davad@lemmy.world 9 points 1 day ago (1 children)

    It's powerful, lightweight, and ubiquitous. If you do sysadmin work, remote into a random machine, and need to update a config file, it probably has vi installed already. It's also extensible enough to use as a full IDE.

    Personally, I like it because of how fast it feels and because I can do everything while keeping my hands on the home row of the keyboard.

    [–] zenforyen@feddit.org 9 points 1 day ago* (last edited 1 day ago)

    Software developer here.

    I only recently switched from vim to VSCode and I refuse to use any editor without vim emulation.

    Regular expressions for quick and efficient and precise search and replace, modal editing which allows me to type di" to 'delete inside current double quotes' (needs vim-surround plugin), typing 123gg to go to line 123, press % to switch between any pair of marching braces, brackets or parentheses, and all sorts of such efficient goodies.

    It's not only efficient, vi has a whole concept, a philosophy how you can build quick editing commands. It's not like remembering random shortcuts like Ctrl-C Ctrl-V. Once you understand the language, it becomes second nature and you can translate something you want to do into 5 key strokes which would need 100 otherwise or would involve the mouse and clicking and selecting etc.

    I'm not even that good at vim, I'm just using the surface features.

    It has very good reasons why every notable editor provides some form of vi editing emulation.

    [–] Luffy879@lemmy.ml 6 points 1 day ago

    Because especially for very low profile systems its more than enough, so you dont need to use something like vim or nvim.