SWG Empire
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
heuristic_lemur@lemmy.ml to Programmer Humor@programming.dev · 3 days ago

Copilot can't exit vim

lemmy.ml

message-square
147
link
fedilink
878

Copilot can't exit vim

lemmy.ml

heuristic_lemur@lemmy.ml to Programmer Humor@programming.dev · 3 days ago
message-square
147
link
fedilink
alert-triangle
You must log in or # to comment.
  • otter@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    54
    ·
    2 days ago

    This is how we trap it. This is how we win.

    • AmanitaCaesarea@slrpnk.net
      link
      fedilink
      arrow-up
      29
      ·
      2 days ago

      This is how we vim😏

    • GreenShimada@lemmy.world
      link
      fedilink
      arrow-up
      19
      arrow-down
      1
      ·
      2 days ago

      Are you sure? It looks like this is going “Hey, I can’t get the front door open to the house, so I called the cops and told them I was being held hostage so they would break down the door with a battering ram.”

      How long is it before CoPilot can’t exit vim and just deletes vim as the solution?

      • otter@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 days ago

        I hope it does delete vim with itself inside it. Yesplease.

  • 🌞 Alexander Daychilde 🌞@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    2 days ago

    I’m sorry, Dave. I’m afraid I can’t exit vim.

  • Seedlord.com@lemmy.zip
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 days ago

    Well, it has to earn its stripes just like the rest of us in IT! No shortcuts, even for an LLM. :D

    • noughtnaut@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      When I first got into BSD (way before Linux) I found man pages useful… but no way to leave them. Not even man man won’t tell you how to exit a man page!

      So I world tinker, eventually needing a man page, reading what I needed – and then hard power cycle the machine. -_-

      I was pretty good with computers, but that was a humbling experience. You just don’t know what you don’t know, and if you can’t ask… sometimes you just get stuck. Just like in KQ, LSL, SQ, … The Internet is (was) a blessing.

  • Feyter@programming.devM
    link
    fedilink
    arrow-up
    223
    arrow-down
    2
    ·
    3 days ago

    No one can exit vim. It’s simply not possible.

    There are even legends that the devil himself was onced tricked into opening vim and is stuck there since.

    • affenlehrer@feddit.org
      link
      fedilink
      arrow-up
      108
      ·
      3 days ago

      That explains the many vim enthusiasts that don’t want any other editor. They simply can’t exit the vim instance they once accidentally opened…

      • wewbull@feddit.uk
        link
        fedilink
        English
        arrow-up
        42
        ·
        3 days ago

        The Eagles called it Hotel California.

        • hakunawazo@lemmy.world
          link
          fedilink
          arrow-up
          24
          ·
          3 days ago

          “We are all just prisoners here of our own device”
          So true, so true.

      • BlackVenom@lemmy.world
        link
        fedilink
        English
        arrow-up
        11
        ·
        3 days ago

        Stockholm Editor

      • cloudy1999@sh.itjust.works
        link
        fedilink
        arrow-up
        7
        ·
        2 days ago

        Vimmer here, this one’s right: I’ve been stuck since 2003.

    • Bakkoda@lemmy.world
      link
      fedilink
      arrow-up
      27
      arrow-down
      1
      ·
      3 days ago

      You just reboot. Right?

      • Hossenfeffer@feddit.uk
        link
        fedilink
        English
        arrow-up
        21
        arrow-down
        1
        ·
        3 days ago

        “… and that’s why I need you to take the power plant offline.”

        • plyth@feddit.org
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 days ago

          “… and that’s why I need you to take the power plants offline.”

          For those who don’t live in the US and have an electical grid with more than one power plant.

      • debil@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        2 days ago
        :!sudo reboot
        
  • Jhex@lemmy.world
    link
    fedilink
    arrow-up
    88
    ·
    3 days ago

    This is the closest I have seen Copilot doing something like a human Programmer would

  • herseycokguzelolacak@lemmy.ml
    link
    fedilink
    arrow-up
    100
    ·
    3 days ago

    Ok this proves that AI has reaches human level intelligence.

  • Cevilia (they/she/…)@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    132
    arrow-down
    1
    ·
    3 days ago

    Every computer has a built-in “exit vim” button, conveniently located on the chassis, usually next to the power cord. Flick it to 0, then back to 1, and you’ll find vim has been successfully exited. :)

    • four@lemmy.zip
      link
      fedilink
      English
      arrow-up
      56
      ·
      3 days ago

      What if my PC boots straight into Vim? It’s not like I need anything else, can do everything in Vim

      • enumerator4829@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        27
        ·
        3 days ago

        Jokes aside, vim as PID 1 is just a bad idea.

        Emacs on the other hand: https://github.com/emacs-os/el-init

        • GenosseFlosse@feddit.org
          link
          fedilink
          arrow-up
          10
          ·
          2 days ago

          That’s a great idea from GitHub user el-sloppo and Claude.

          • enumerator4829@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            18 hours ago

            To be fair, I’ve seen this done a long time before LLM slopped everything, but I think they ran emacs as PID2 in that variation.

            Anyway, good luck doing it in vimscript.

          • A7thStone@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 days ago

            Did you read the retrospective.md

            • Cevilia (they/she/…)@lemmy.blahaj.zone
              link
              fedilink
              English
              arrow-up
              9
              arrow-down
              1
              ·
              2 days ago

              AI;DR

              • A7thStone@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                1 day ago

                Then you obviously didn’t read it.

                • Cevilia (they/she/…)@lemmy.blahaj.zone
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 day ago

                  Yes. That’s literally what I said.

        • Goodlucksil@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          9
          ·
          3 days ago

          That settles it. Emacs is better than Vim

          • 🌞 Alexander Daychilde 🌞@lemmy.world
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 days ago

            I bet this comment actually pissed off some people. Lol

        • the rizzler@lemmygrad.ml
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          https://raymii.org/s/blog/Vim_as_PID_1_Boot_to_Vim.html

      • HugeNerd@lemmy.ca
        link
        fedilink
        arrow-up
        6
        ·
        2 days ago

        Oh it’s like Zombo?

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 days ago

          Zombo.com

          • HugeNerd@lemmy.ca
            link
            fedilink
            arrow-up
            2
            ·
            17 hours ago

            As discovered by plyth, you can’t do anything anymore. There are limits

            • JackbyDev@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              15 hours ago

              Seeing you reply made me click the link, where is my beloved! At least the new owners want to keep it Zombo.

        • plyth@feddit.org
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 days ago

          Not anymore.

          • HugeNerd@lemmy.ca
            link
            fedilink
            arrow-up
            2
            ·
            17 hours ago

            crap

      • mghackerlady@leminal.space
        link
        fedilink
        arrow-up
        4
        ·
        3 days ago

        Can vim be pid-1? No? emacs can B)

        • the rizzler@lemmygrad.ml
          link
          fedilink
          arrow-up
          3
          ·
          2 days ago

          https://raymii.org/s/blog/Vim_as_PID_1_Boot_to_Vim.html

      • Cevilia (they/she/…)@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        3 days ago

        mmmkay.

    • SavinDWhales@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      3 days ago

      You simply need to set up a MCP server which controls the smart plug and give the AI access to it.

      • Cevilia (they/she/…)@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        I don’t even know what a MCP server is and I feel like I’ve somewhat dodged a bullet there. Ignorance is bliss. :)

  • electric_nan@lemmy.ml
    link
    fedilink
    arrow-up
    35
    ·
    2 days ago

    Just like me fr

  • Malix@sopuli.xyz
    link
    fedilink
    arrow-up
    110
    arrow-down
    1
    ·
    3 days ago

    so human of it!

    • heuristic_lemur@lemmy.mlOP
      link
      fedilink
      arrow-up
      52
      arrow-down
      1
      ·
      3 days ago

      Isn’t it? I can’t decide whether I believe this is an easter egg

      • wheezy@lemmy.ml
        link
        fedilink
        English
        arrow-up
        48
        ·
        3 days ago

        If it was trained properly on Internet data it would just respond with “you can’t”

        • Barbecue Cowboy@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          17
          ·
          3 days ago

          If you need to exit vim, just open a new terminal and reboot the machine.

          • Chakravanti@monero.town
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 days ago

            I don’t often see folks with such well earned nicks. Usually for dinner not to be, but that’s rather why I’m here.

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    17
    ·
    2 days ago

    It has achieved the same level of awareness as the average emacs user.

  • UnderpantsWeevil@lemmy.world
    link
    fedilink
    English
    arrow-up
    42
    ·
    3 days ago

  • weimaraner_of_doom@piefed.social
    link
    fedilink
    English
    arrow-up
    76
    arrow-down
    1
    ·
    3 days ago

    Instructions: “Next, open the .config file in vim…”

    Me:

    • BluescreenOfDeath@lemmy.world
      link
      fedilink
      English
      arrow-up
      57
      arrow-down
      4
      ·
      3 days ago

      What a weird way to spell nano

      • weimaraner_of_doom@piefed.social
        link
        fedilink
        English
        arrow-up
        28
        arrow-down
        7
        ·
        3 days ago

        Nano is the proper tool for this job.

        • thethunderwolf@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          10
          ·
          3 days ago

          neovim

          but

          use whatever you like

        • null@piefed.nullspace.lol
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          1
          ·
          3 days ago

          I prefer micro, but I never use it because my brain just autotypes nano and then it’s too late I’m already in

          • p4rzivalrp2@piefed.social
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 days ago

            You could alias nano to micro

      • littlewonder@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        Move over, my friends are here.

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      3 days ago

      *Vim

  • mcv@lemmy.zip
    link
    fedilink
    arrow-up
    33
    ·
    3 days ago

    I often see Copilot get stuck in a nonresponsive shell after it used cat > file. It’s hilarious to watch the first time, but I’m a bit tired of it by now. Why doesn’t it just edit files like it normally does?

    • pinball_wizard@lemmy.zip
      link
      fedilink
      arrow-up
      10
      ·
      2 days ago

      Why doesn’t it just edit files like it normally does?

      Haha. Yes.

      But it does everything the most probable way, according to all the stack overflow it has swallowed.

      Sometimes that way makes sense. Sometimes not.

      • raman_klogius@ani.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        Because efficiency is never the point. All gimmicks of “artificial intelligence” throughout history is how automatons do things the way humans do it, with human interface. The mechanical turk, the robot maids of the 70s, etc.

        • pinball_wizard@lemmy.zip
          link
          fedilink
          arrow-up
          6
          ·
          2 days ago

          The mechanical turk, the robot maids of the 70s, etc.

          Yes.

          But I’m a little sad that I still can’t buy a robot maid or butler.

          I figured they would exist by now, for about the price of a vacuum.

          I’m not demanding that they actually be any good. We could just program them to quote “The Jetsons” and do some simple vacuum pathing, or deliver a tray full of drinks.

          • 🌞 Alexander Daychilde 🌞@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 days ago

            Failures are making occasional news, but bots are getting better at walking. Doing useful tasks will be a few more years, but I think it’s coming.

    • Evotech@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      Claus Weill often write a python script to update a file. It’s pretty funny.

  • BlushedPotatoPlayers@sopuli.xyz
    link
    fedilink
    arrow-up
    11
    ·
    2 days ago

    If you use nvim you don’t exit you open a float terminal. Why would you exit?

  • 1984@lemmy.today
    link
    fedilink
    arrow-up
    22
    ·
    3 days ago

    First funny thing ive seen Microslop Copilot do…

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.

  • 2.57K users / day
  • 4.52K users / week
  • 9.07K users / month
  • 18.1K users / 6 months
  • 1 local subscriber
  • 31K subscribers
  • 2.27K Posts
  • 88.7K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.17
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org