minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Kerb@discuss.tchncs.de to Programmer Humor@programming.dev · två år sedan

ways to close vim

discuss.tchncs.de

message-square
43
fedilink
209

ways to close vim

discuss.tchncs.de

Kerb@discuss.tchncs.de to Programmer Humor@programming.dev · två år sedan
message-square
43
fedilink
alert-triangle
You must log in or # to comment.
  • Jakylla@sh.itjust.works
    link
    fedilink
    arrow-up
    40
    ·
    två år sedan
    • Unplug the computer
    • Shut the house electric safety switch down
    • Cut the electricity pole nearest to the house
    • Bomb the nearest electricity distribution post
    • BrooklynMan@lemmy.ml
      link
      fedilink
      arrow-up
      16
      ·
      två år sedan

      nuke it from orbit. it’s the only way to be sure.

    • rtxn@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      två år sedan
      • Wait for a sufficiently powerful coronal mass ejection to collapse the global electric grid
    • jamyang@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      två år sedan

      “Simple and easily explained.”

      • Jakylla@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        två år sedan

        Pretty sure I can learn my grandma to put a fork in any socket to close Vim, no prior knowledge needed

  • mayoaddict@pawb.social
    link
    fedilink
    arrow-up
    25
    ·
    två år sedan

    you can close vim?

    • z3n0x@feddit.de
      link
      fedilink
      arrow-up
      6
      ·
      två år sedan

      “this is my life now”

  • alnilam@lemmy.world
    link
    fedilink
    arrow-up
    24
    ·
    två år sedan

    Does colon-capital-Q-exclamation mark even work? I’m pretty sure it’s only lower case q.

    • Kerb@discuss.tchncs.deOP
      link
      fedilink
      arrow-up
      22
      ·
      två år sedan

      its supposed to be lowercase,
      but imgflip put the entire text in uppercase.

      • RustySharp@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        två år sedan

        Honestly, the joke landed anyway. I’ve done numerous uppercase-Q trying to quit, because I didn’t let go of Shift fast enough after typing the colon…

    • nickwitha_k (he/him)@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      två år sedan

      Was going to say this, myself.

  • Eufalconimorph@discuss.tchncs.de
    link
    fedilink
    arrow-up
    18
    ·
    två år sedan

    cat /dev/zero > "/proc/$(pidof vim)/mem" is my favorite dumb way. Clear its memory, wait for the segfault.

    • Julian@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      två år sedan

      …you can write to program memory? Idk how exactly but that feels like a security risk.

      • nintendiator@feddit.cl
        link
        fedilink
        arrow-up
        6
        ·
        två år sedan

        It’s your process, why shouldn’t you be able to write to it? Vi is certainly doing it…

        • Eufalconimorph@discuss.tchncs.de
          link
          fedilink
          arrow-up
          5
          ·
          två år sedan

          You do need to be root to do it to arbitrary processes.

    • vrkr@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      två år sedan

      dumb way.

      Get fancy, add progress bar: pv < /dev/zero > “/proc/$(pidof vim)/mem”

  • Cloudless ☼@feddit.uk
    link
    fedilink
    arrow-up
    11
    ·
    två år sedan

    Amateur. Just unplug the power cable.

  • CaptPretentious@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    två år sedan

    Open vim.

    Accept vim is the OS now.

  • graham1@gekinzuku.com
    link
    fedilink
    English
    arrow-up
    5
    ·
    två år sedan

    ctrl-z
    kill %1

    • Kerb@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      två år sedan

      holy crap,
      that’s exactly what i wanted the last command to do.

      i just didn’t know you can target jobs,
      and settled with quitting the shell instead

      • graham1@gekinzuku.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        två år sedan

        yeah it’s my favorite way to exit Vim. I post it every time I get a chance lol https://gekinzuku.com/comment/202790

  • Boermund@feddit.de
    link
    fedilink
    arrow-up
    5
    ·
    två år sedan

    One panel below: shut down the computer

  • Sarsoar@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    två år sedan

    ctrl-S instinctively from windows then panic when the terminal pauses and isnt accepting input so you restart the computer.

    • MattTheProgrammer@kbin.social
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      två år sedan

      Fuck, are you me?

  • mormegil@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    två år sedan

    There’s a whole repo of possible methods: https://github.com/hakluke/how-to-exit-vim

  • testifier@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    två år sedan

    https://piped.video/watch?v=s5lj9YdKMz0

    😵‍💫

    • PipedLinkBot@feddit.rocksB
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      3
      ·
      två år sedan

      Here is an alternative Piped link(s): https://piped.video/watch?v=s5lj9YdKMz0

      Piped is a privacy-respecting open-source alternative frontend to YouTube.

      I’m open-source, check me out at GitHub.

      • thiccdiccnicc@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        två år sedan

        Bad bot

        • IHateRedditAndSpez@programming.dev
          link
          fedilink
          English
          arrow-up
          5
          ·
          två år sedan

          The comment was edited after the bot responded

  • 𝓹𝓻𝓲𝓷𝓬𝓮𝓼𝓼@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    3
    ·
    två år sedan

    Alt+PrtScn o

  • gornius@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    två år sedan

    ZZ will save file though, the others won’t. You meant ZQ.

  • Doc Avid Mornington@midwest.social
    link
    fedilink
    arrow-up
    3
    ·
    två år sedan

    M-! pkill -9 vim

  • ImpossibleRubiksCube@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    två år sedan

    :!echo “reisub” | sudo tee -a /proc/sysrq-trigger

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 117 users / day
  • 5.95K users / week
  • 8.35K users / month
  • 12.6K users / 6 months
  • 1 local subscriber
  • 23.7K subscribers
  • 1.44K Posts
  • 45.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org