Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Kerb to Programmer Humor@programming.dev • 2 years ago

ways to close vim

discuss.tchncs.de

message-square
43
fedilink
208

ways to close vim

discuss.tchncs.de

Kerb to Programmer Humor@programming.dev • 2 years ago
message-square
43
fedilink
alert-triangle
You must log in or register to comment.
  • @graham1@gekinzuku.com
    link
    fedilink
    English
    5•2 years ago

    ctrl-z
    kill %1

    • KerbOP
      link
      fedilink
      English
      4•2 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

      • @graham1@gekinzuku.com
        link
        fedilink
        English
        2•2 years ago

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

  • Lil' Bobby Tables
    link
    fedilink
    2•
    edit-2
    2 years ago

    deleted by creator

  • @onescomplement@lemm.ee
    link
    fedilink
    1•2 years ago

    https://youtu.be/4889ED2-ufw

    • @PipedLinkBot@feddit.rocksB
      link
      fedilink
      English
      2•2 years ago

      Here is an alternative Piped link(s): https://piped.video/4889ED2-ufw

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

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

      • @onescomplement@lemm.ee
        link
        fedilink
        English
        1•2 years ago

        Good bot

  • @mormegil@programming.dev
    link
    fedilink
    4•2 years ago

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

  • @gornius@lemmy.world
    link
    fedilink
    3•2 years ago

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

  • @JohnJVaccaro@lemmy.sdf.org
    link
    fedilink
    1•2 years ago

    try…

    :x

    it will save your changes and exit vim If there are no changes to the then it just exits vim.

  • Jakylla
    link
    fedilink
    39•2 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
    • jamyang
      link
      fedilink
      1•2 years ago

      “Simple and easily explained.”

      • Jakylla
        link
        fedilink
        English
        1•2 years ago

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

    • @rtxn@lemmy.world
      link
      fedilink
      7•2 years ago
      • Wait for a sufficiently powerful coronal mass ejection to collapse the global electric grid
    • BrooklynMan
      link
      fedilink
      16•2 years ago

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

  • @Boermund@feddit.de
    link
    fedilink
    4•2 years ago

    One panel below: shut down the computer

  • @Eufalconimorph@discuss.tchncs.de
    link
    fedilink
    18•2 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
      1•
      edit-2
      2 years ago

      dumb way.

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

    • Julian
      link
      fedilink
      2•2 years ago

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

      • @nintendiator@feddit.cl
        link
        fedilink
        6•2 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
          5•2 years ago

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

  • 𝓹𝓻𝓲𝓷𝓬𝓮𝓼𝓼
    link
    fedilink
    3•2 years ago

    Alt+PrtScn o

  • Cloudless ☼
    link
    fedilink
    11•2 years ago

    Amateur. Just unplug the power cable.

  • stebo
    link
    fedilink
    1•2 years ago

    ⏻

  • Doc Avid Mornington
    link
    fedilink
    3•2 years ago

    M-! pkill -9 vim

  • @Ducks@ducks.dev
    link
    fedilink
    1•2 years ago

    til shift-z shift-z. am I stupid

  • @Just_Dominic@programming.dev
    link
    fedilink
    1•2 years ago
    1. Ctrl + T + alt
    2. sudo reboot

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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
  • 24 users / day
  • 395 users / week
  • 1.63K users / month
  • 4.3K users / 6 months
  • 3 subscribers
  • 1.54K Posts
  • 54.8K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org