this post was submitted on 25 Aug 2023
169 points (93.8% liked)

linuxmemes

21378 readers
1859 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
     
    top 30 comments
    sorted by: hot top controversial new old
    [–] nexussapphire@lemm.ee 27 points 1 year ago (1 children)

    Damn, I guess you need a new phone.

    [–] GravelPieceOfSword@lemmy.ca 2 points 1 year ago

    I've been telling myself that for a while.

    I guess it's time now.

    [–] user224@lemmy.sdf.org 23 points 1 year ago

    You don't exit Vim. Only Vim exits you.

    [–] raubarno@lemmy.ml 18 points 1 year ago* (last edited 1 year ago) (1 children)

    There should be a hardware reset pin hole somewhere near the place where PIN/SD cards are placed. It was designed specifically for VIM users. Hold it with a narrow object.

    EDIT: typo

    [–] MajorHavoc@lemmy.world 8 points 1 year ago

    I'm stealing this forever. Thank you.

    I solemnly swear to explain "it's for Vim users" every time I speak of those little pin reset buttons in the future.

    [–] throws_lemy@reddthat.com 14 points 1 year ago (1 children)

    Obviously, you need to feed the cow first!

    [–] burgersc12@sh.itjust.works 13 points 1 year ago* (last edited 1 year ago)

    Force stop the app!! Turn off the phone!! Throw it into Mordor! Its literally the only way

    [–] Thyrian@ttrpg.network 13 points 1 year ago
    1. Connect to Laptop
    2. Start adb
    3. Flash phone
    4. Install [distro]
    5. Profit
    [–] kat@feddit.de 11 points 1 year ago

    This is your life now.

    [–] eager_eagle@lemmy.world 10 points 1 year ago (2 children)

    Too late. You'll need a new phone.

    [–] GravelPieceOfSword@lemmy.ca 5 points 1 year ago

    I've learned a few new commands now. :e dials an existing contact, and :w saves contact information.

    :q! is super useful for hanging up on robo-callers

    I think this thing could work... I dub it the vimphone!

    [–] JackGreenEarth@lemm.ee 1 points 1 year ago

    Click the home button?

    [–] chris@l.roofo.cc 9 points 1 year ago (2 children)

    Press Escape

    Type :q!

    Press enter

    [–] teft@startrek.website 18 points 1 year ago (1 children)

    Gotta save the cow. So type :wq

    [–] andrewth09@lemmy.world 10 points 1 year ago* (last edited 1 year ago)

    Added context.

    ESC exits Insert mode (or any other mode you are in)

    : tells vim you are entering a command

    q is the command for quit

    ! tells vim for force quit (without saving)

    Alternatively, :wq will write (save) the file then quit.

    [–] original_ish_name@lemm.ee 6 points 1 year ago

    First: press escape

    Then type :!killall -s KILL vim

    [–] Draconic_NEO@lemmy.world 4 points 1 year ago

    On some devices you can hold the back key to kill the foreground app.

    spoilerYou might also try Typing :q

    [–] jopakes3@lemm.ee 3 points 1 year ago (2 children)
    [–] GravelPieceOfSword@lemmy.ca 3 points 1 year ago (1 children)

    Try it to find out!

    • Install Termux from F-Droid
    • Open Termux, and run pkg install gvim. You might have to add the xorg repo - it will tell you what to do if you try running vim
    • Launch vim
    • You can checkout any time you like but you can never leave....
    [–] original_ish_name@lemm.ee 1 points 1 year ago (1 children)

    pkg install gvim

    Why install the gui version?

    pkg install vim

    [–] GravelPieceOfSword@lemmy.ca 0 points 1 year ago (1 children)

    Only gvim is available in pkg, not vim. I had the same surprise when I didn't see vim.

    [–] original_ish_name@lemm.ee 0 points 1 year ago (1 children)
    [–] GravelPieceOfSword@lemmy.ca 0 points 1 year ago (1 children)

    This is from termux on my Android phone.

    [–] original_ish_name@lemm.ee 0 points 1 year ago

    I'm using termux too

    [–] lud@lemm.ee 2 points 1 year ago

    Yeah, why not? It's just a terminal running vim.

    [–] DangerZ0ne@lemmy.world 2 points 1 year ago

    Type: nano

    You could use Hackers KB which has the Ctrl keys, Esc, etc.

    If you turn off the Accessibility button on the bottom right, you can switch between keyboards easily too.