354
all 50 comments
sorted by: hot top controversial new old
[-] kernelle@0d.gs 25 points 11 months ago

They might be stuck in insert or replace mode. Nobody mentioned hitting escape before :x or :q!

[-] BeardedGingerWonder@feddit.uk 6 points 11 months ago

Lol, as if they haven't already tried Esc half a dozen times before googling how exit vim

[-] NorthWestWind@lemmy.world 4 points 11 months ago

If the idea of hitting escape didn't spark for them, I don't think they can even get into insert mode

[-] sxan@midwest.social 23 points 11 months ago

One great thing about this joke is a that I doubt there's anyone left who doesn't know how to exit vim.

[-] moonpiedumplings@programming.dev 14 points 11 months ago

Was watching a twitch streamer learning linux, and chat convinced them to open vim for the first time. Not a single person gave the real answer of how to exit, all joke answers like "Power off," and it was hilarious.

[-] jrbaconcheese@yall.theatl.social 12 points 11 months ago

I have no idea, but I know it’s awful

[-] ArcaneSlime@lemmy.dbzer0.com 11 points 11 months ago* (last edited 11 months ago)

It's really not that bad. [ESC] :wq Escape to exit input mode and enter command mode, then the command indicator : w for write and q for quit. To quit without writing force it with :q!. Done.

[-] Aceticon@lemmy.world 2 points 11 months ago* (last edited 11 months ago)

Well, depending on how long one is trying to exit Vim and hence the level of frustration, exiting Vim might involve the use of a sledgehammer...

[-] 018118055@sopuli.xyz 15 points 11 months ago
[-] TheWoozy@lemmy.world 13 points 11 months ago

Please don't put the punchline in the title.

[-] majestictechie@lemmy.fosshost.com 9 points 11 months ago
[-] user224@lemmy.sdf.org 9 points 11 months ago

Additionally for save and exit: :wq (read as write and quit) or ZZ (without colon).

[-] palordrolap@kbin.social 8 points 11 months ago

Dude's in bed. ZZ is clearly the superior choice for the sleepy vi user.

[-] dukk@programming.dev 6 points 11 months ago

Personally prefer :xprobably because it’s a little more ergonomic, as Z is all the way in the corner (QWERTY), and is the same key twice, while : and x are in two different spots, and can therefore be hit faster.

I know, it’s like millisecond differences, but, hey, I’m a vim user.

[-] erev@lemmy.world 2 points 11 months ago

:x will save and exit. The difference between :x and :wq is that the latter will always write to the buffer, while the former will only do so if theres a change.

[-] user224@lemmy.sdf.org 2 points 11 months ago

Sup. And ZZ is like :x, write only if change was made.

[-] synae@lemmy.sdf.org 2 points 11 months ago

I like :cq for if I want to cancel my git commit message (or similar)

[-] callyral@pawb.social 7 points 11 months ago

Wait, has he entered Vim in his mind??

[-] fl42v@lemmy.ml 1 points 11 months ago* (last edited 11 months ago)

That's what everyone who starts learning it does. Then you.jjjj websites or :wq documents, and eventually end up installing vim-like plugins for everything

[-] Doombot1@lemmy.one 7 points 11 months ago

Freak out and force-power-down your PC, and never accidentally open vim again

[-] Pantherina@feddit.de 6 points 11 months ago

I have the feeling these editors only make sense on US keyboards. Like ":" for what? This is not a primary sign anywhere, why not just control like a normal person, working on every keyboard?

[-] synae@lemmy.sdf.org 3 points 11 months ago

sure, pull requests welcome. good luck

[-] Pantherina@feddit.de 3 points 11 months ago

Haha not gonna happen

[-] MeDuViNoX@sh.itjust.works 6 points 11 months ago

Turn it off and back on again.

[-] omnissiah@iusearchlinux.fyi 6 points 11 months ago
[-] Swarfega@lemm.ee 3 points 11 months ago
[-] MajorHavoc@lemmy.world 8 points 11 months ago

Gotta let it know we mean business! /s

[-] BeardedGingerWonder@feddit.uk 2 points 11 months ago* (last edited 11 months ago)

OR :x at that point.

[-] jaybone@lemmy.world 5 points 11 months ago

How do I put the punchline in the title?

[-] cupcakezealot@lemmy.blahaj.zone 4 points 11 months ago
[-] ramius345@sh.itjust.works 4 points 11 months ago
[-] hansl@lemmy.world 2 points 11 months ago
[-] kat_angstrom@lemmy.world 3 points 11 months ago
[-] OddFed@feddit.de 12 points 11 months ago* (last edited 11 months ago)
[-] Anticorp@lemmy.ml 3 points 11 months ago

I don't understand why this is such a popular meme. Take 5 minutes to read about how Vim works, and you won't have any more issues.

[-] TimeSquirrel@kbin.social 2 points 11 months ago* (last edited 11 months ago)

I shouldn't really have to look up the instruction manual of a text editor to do a simple action like close the program. Every single other text editor I've ever used was intuitive enough to get started right away, going back to 1989.

[-] Andrew15_5@mander.xyz 2 points 11 months ago

If it's not intuitive enough then don't use it and don't open it. You can always close with Ctrl+z and then kill it. Or close a terminal window like any other intuitive editor.

[-] foyrkopp@lemmy.world 1 points 11 months ago

Well, it works well for some people.

Once you get used to it, it can be a dang powerful tool. For people doing a lot of config-wrangling on the CLI (i.e. admins working a lot ovet SSH), overcoming the learning curve will pay dividends.

If you're working mostly locally and in a GUI environment environment, it's probably not worth it - there's a reason most devs use more specialized IDE's.

load more comments (1 replies)
[-] AceFuzzLord@lemm.ee 3 points 11 months ago* (last edited 11 months ago)

I got VIM (possibly NeoVIM, I don't recall) on a thumb drive a few weeks back for an assignment for one of my college courses because I can't install anything on the college library computers and it threw me off because I had no experience with it before then. Thank goodness for the Internet knowing what to do because I had absolutely no idea how to do just about anything in it.

[-] fraydabson@sopuli.xyz 3 points 11 months ago

I’ve recently made the choice to switch to neovim as my main terminal editor and I like it. Even doing coding in it. But bigger projects I still use vs code.

this post was submitted on 20 Nov 2023
354 points (88.0% liked)

linuxmemes

21032 readers
633 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!

    founded 1 year ago
    MODERATORS