Informis Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Kerb@discuss.tchncs.de to Programmer Humor@programming.dev · 3 years ago

ways to close vim

discuss.tchncs.de

message-square
30
link
fedilink
22

ways to close vim

discuss.tchncs.de

Kerb@discuss.tchncs.de to Programmer Humor@programming.dev · 3 years ago
message-square
30
link
fedilink
alert-triangle
You must log in or register to comment.
  • Jakylla@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago
    • 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
      2
      ·
      3 years ago

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

  • CaptPretentious@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    Open vim.

    Accept vim is the OS now.

  • gornius@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 years ago

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

  • Lil' Bobby Tables@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

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

  • alnilam@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    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
      2
      ·
      3 years ago

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

      • RustySharp@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

        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
      ·
      3 years ago

      Was going to say this, myself.

  • Just_Dominic@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago
    1. Ctrl + T + alt
    2. sudo reboot
  • 🇰 🔵 🇱 🇦 🇳 🇦 🇰 ℹ️@yiffit.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    Does unplugging the machine not work?

    • Sagrotan@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      I call my local energy provider and simply cancel my contract with immediate effect.

  • mayoaddict@pawb.social
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    you can close vim?

    • z3n0x@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      “this is my life now”

  • graham1@gekinzuku.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 years ago

    ctrl-z
    kill %1

    • Kerb@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      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

  • testifier@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    3 years ago

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

    😵‍💫

    • PipedLinkBot@feddit.rocksB
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 years ago

      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
        0
        ·
        3 years ago

        Bad bot

        • IHateRedditAndSpez@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 years ago

          The comment was edited after the bot responded

  • Eufalconimorph@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    3 years ago

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

    • vrkr@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      dumb way.

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

    • Julian@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      3 years ago

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

      • nintendiator@feddit.cl
        link
        fedilink
        arrow-up
        0
        ·
        3 years ago

        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
          2
          ·
          3 years ago

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

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 1.53K users / day
  • 2.6K users / week
  • 2.62K users / month
  • 2.63K users / 6 months
  • 1 local subscriber
  • 34.3K subscribers
  • 548 Posts
  • 11.7K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.21
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org