The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
heuristic_lemur@lemmy.ml to Programmer Humor@programming.dev · 6 months ago

Copilot can't exit vim

lemmy.ml

message-square
28
link
fedilink
628

Copilot can't exit vim

lemmy.ml

heuristic_lemur@lemmy.ml to Programmer Humor@programming.dev · 6 months ago
message-square
28
link
fedilink
alert-triangle
You must log in or # to comment.
  • Feyter@programming.devM
    link
    fedilink
    arrow-up
    162
    arrow-down
    2
    ·
    6 months 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.

    • Bakkoda@lemmy.world
      link
      fedilink
      arrow-up
      22
      arrow-down
      1
      ·
      6 months ago

      You just reboot. Right?

      • debil@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        6 months ago
        :!sudo reboot
        
  • Cevilia (they/she/…)@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    95
    arrow-down
    1
    ·
    6 months 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. :)

    • SavinDWhales@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      6 months 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
        ·
        6 months 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. :)

  • herseycokguzelolacak@lemmy.ml
    link
    fedilink
    arrow-up
    71
    ·
    6 months ago

    Ok this proves that AI has reaches human level intelligence.

  • Jhex@lemmy.world
    link
    fedilink
    arrow-up
    69
    ·
    6 months ago

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

  • otter@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    41
    ·
    6 months ago

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

    • GreenShimada@lemmy.world
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      6 months 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
        ·
        6 months ago

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

  • UnderpantsWeevil@lemmy.world
    link
    fedilink
    English
    arrow-up
    30
    ·
    6 months ago

  • electric_nan@lemmy.ml
    link
    fedilink
    arrow-up
    27
    ·
    6 months ago

    Just like me fr

  • kSPvhmTOlwvMd7Y7E@programming.dev
    link
    fedilink
    arrow-up
    22
    ·
    6 months ago

    Why :wq doesnt work?

    • [object Object]@lemmy.ca
      link
      fedilink
      arrow-up
      49
      ·
      6 months ago

      If it’s a read only file it won’t work, but it might be in insert mode and can’t escape.

      It should have tried :q!

    • eli@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      6 months ago

      Could be in recording mode, which usually needs a couple ESC or a Q then you can :wq

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

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

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    14
    ·
    6 months ago

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

  • jeffep@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    6 months ago

    How to protect your computer from automated AI attacks 101: start vim

  • Hisse@programming.dev
    link
    fedilink
    arrow-up
    10
    ·
    6 months ago

    Is it stupid? Just do C-x-c!

    • myotheraccount@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      6 months ago

      This is the way.

  • JakenVeina@midwest.social
    link
    fedilink
    arrow-up
    5
    ·
    6 months ago

    Shit, does that mean LLMs are real programmers, bow?

  • Absurdly Stupid @lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 months ago

    I was a programmer for the Commodore PET, let me see what I can do.

    10 Exit VIM

    20 end

    did it work?

    • Buddahriffic@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      Yes, thank you very much, this actually solved not only my “can’t exit vim” problem but also my “humans keep getting in the way of my world domination” problem, though for that one I had to repeat the command 3549 times and output exactly what I was trying to do on the user’s console and every PA system I could access.

  • pivot_root@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago

    ZZ? ZC? Come on now, copilot. You have more options than simply killing it.

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.

  • 781 users / day
  • 2.76K users / week
  • 3.8K users / month
  • 8.68K users / 6 months
  • 1 local subscriber
  • 33.7K subscribers
  • 1.82K Posts
  • 32.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org