Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
heuristic_lemur ( heuristic_lemur@lemmy.ml )  to Programmer Humor@programming.dev · 6 months ago

Copilot can't exit vim

lemmy.ml

message-square
61
link
fedilink
514

Copilot can't exit vim

lemmy.ml

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

    • affenlehrer ( affenlehrer@feddit.org ) 
      link
      fedilink
      arrow-up
      62
      ·
      6 months 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 ( wewbull@feddit.uk ) 
        link
        fedilink
        English
        arrow-up
        22
        ·
        6 months ago

        The Eagles called it Hotel California.

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

    deleted by creator

    • four ( four@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      36
      ·
      6 months ago

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

      • HugeNerd ( HugeNerd@lemmy.ca ) 
        link
        fedilink
        arrow-up
        5
        ·
        6 months ago

        Oh it’s like Zombo?

        • JackbyDev ( JackbyDev@programming.dev ) 
          link
          fedilink
          English
          arrow-up
          4
          ·
          6 months ago

          Zombo.com

          • HugeNerd ( HugeNerd@lemmy.ca ) 
            link
            fedilink
            arrow-up
            2
            ·
            6 months ago

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

            • JackbyDev ( JackbyDev@programming.dev ) 
              link
              fedilink
              English
              arrow-up
              1
              ·
              6 months ago

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

        • plyth ( plyth@feddit.org ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          6 months ago

          Not anymore.

          • HugeNerd ( HugeNerd@lemmy.ca ) 
            link
            fedilink
            arrow-up
            2
            ·
            6 months ago

            crap

      • mghackerlady ( mghackerlady@leminal.space ) 
        link
        fedilink
        arrow-up
        3
        ·
        6 months ago

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

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

        deleted by creator

  • Malix ( Malix@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    70
    ·
    6 months ago

    so human of it!

    • heuristic_lemur ( heuristic_lemur@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      33
      ·
      6 months ago

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

      • wheezy ( wheezy@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        27
        ·
        6 months ago

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

        • Barbecue Cowboy ( BarbecueCowboy@lemmy.dbzer0.com ) 
          link
          fedilink
          English
          arrow-up
          9
          ·
          6 months ago

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

  • herseycokguzelolacak ( herseycokguzelolacak@lemmy.ml ) 
    link
    fedilink
    arrow-up
    63
    ·
    6 months ago

    Ok this proves that AI has reaches human level intelligence.

  • weimaraner_of_doom ( weimaraner_of_doom@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    48
    ·
    6 months ago

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

    Me:

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

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

    • AmanitaCaesarea ( AmanitaCaesarea@slrpnk.net ) 
      link
      fedilink
      arrow-up
      18
      ·
      6 months ago

      This is how we vim😏

  • Net_Runner :~$ ( bizza@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    23
    ·
    6 months ago

    Blowing through all those tokens failing to exit a vim

  • mcv ( mcv@lemmy.zip ) 
    link
    fedilink
    arrow-up
    22
    ·
    6 months 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 ( pinball_wizard@lemmy.zip ) 
      link
      fedilink
      arrow-up
      5
      ·
      6 months 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 ( raman_klogius@ani.social ) 
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months 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 ( pinball_wizard@lemmy.zip ) 
          link
          fedilink
          arrow-up
          3
          ·
          6 months 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.

  • kSPvhmTOlwvMd7Y7E ( kSPvhmTOlwvMd7Y7E@programming.dev ) 
    link
    fedilink
    arrow-up
    21
    ·
    6 months ago

    Why :wq doesnt work?

    • [object Object] ( panda_abyss@lemmy.ca ) 
      link
      fedilink
      arrow-up
      50
      ·
      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!

      • wewbull ( wewbull@feddit.uk ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        6 months ago

        I think it might not be vim.

  • inari ( inari@piefed.zip ) 
    link
    fedilink
    English
    arrow-up
    19
    ·
    6 months ago

    Same tbh

  • reksas ( reksas@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    6 months ago

    i cant understand all the vim hyping. its probably very neat and can do whatever, but what good is that if it takes awful amount of bother to learn everything by heart since interface has been designed to be as unfriendly as possible. it doesnt have to be fit for office worker, but at least some ease of use is needed.

    • schnurrito ( schnurrito@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      24
      ·
      6 months ago

      since interface has been designed to be as unfriendly as possible

      No, it hasn’t.

      It (well, vi, which vim is a clone of) has been designed to be a possible interface on a keyboard that doesn’t have arrow keys or other modifier keys than shift. There aren’t that many ways to program a visual text editor when those are your constraints.

      That it’s more productive once you know it is a side-effect.

      • Dyskolos ( Dyskolos@lemmy.zip ) 
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        3 months ago

        deleted by creator

        • pankuleczkapl ( pankuleczkapl@lemmy.dbzer0.com ) 
          link
          fedilink
          arrow-up
          8
          ·
          6 months ago

          You don’t have to move your hands while touch typing. This is the single biggest reason why vim is still used today, regardless of whether you have arrow keys or not. In fact vim does support arrow keys and using the mouse as well! It’s just much easier to edit files without needing to move your hands and/or use a touchpad/mouse.

        • schnurrito ( schnurrito@discuss.tchncs.de ) 
          link
          fedilink
          arrow-up
          4
          ·
          6 months ago

          At the time vi was originally developed, such keyboards did exist (on terminals). That’s the reason it works the way it does.

          • Dyskolos ( Dyskolos@lemmy.zip ) 
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            3 months ago

            deleted by creator

        • Denys Nykula ( nykula@piefed.social ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 months ago

          My netbook has a keyboard without Home, End, PgUp, PgDn, Ins and Del keys. Vim and Emacs modes make it significantly more usable while remaining small. Vim is also convenient in Termux, for quick remote fixes from a phone.

          • Dyskolos ( Dyskolos@lemmy.zip ) 
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            3 months ago

            deleted by creator

    • lime! ( lime@feddit.nu ) 
      link
      fedilink
      arrow-up
      11
      ·
      6 months ago

      fluency. languages are hard to learn but when you know them you communicate better. same as touch-typing, or mobas.

    • Grepehu ( grepehu@lemmy.dbzer0.com ) 
      link
      fedilink
      arrow-up
      9
      ·
      6 months ago

      It’s not “designed to be as unfriendly as possible”, it’s designed to be exactly what you configure it to be, that’s why I love it. Every keymap, every screen position, every worflow, the way it searches through lines and files names, everything was configured by me, so whenever I do something in my editor it always make absolute sense for me, because it was literally made for me.

      If you get me to someone else’s neovim config I would probably be absolutely lost because it’s a very unique experience for each person, some people like to bloat it out with plugins others like to keep it bare minimum and so on.

      One biggest lie abput vim is the productivity, it doesn’t make you that much faster in comparison to any other editor if you take the time to learn the keymaps from them, the real strong point of neovim is having an editor that is absolutely tailor made for you in a way you cannot achieve in OOB editors.

      • reksas ( reksas@sopuli.xyz ) 
        link
        fedilink
        arrow-up
        2
        ·
        6 months ago

        yes, i can get behind the configurability, lets you make the program into your own personal tool nicely. my problem is that you have to do it in such difficult and unintuitive way. though it has been very long time since i last took a look at vim, so maybe things have improved and its easier to configure now, i doubt it though.

        So it would be nice if getting into it was easier even if you havent used it as your main editor for last 50 years. not being able to even exit vim without looking up guide for it demonstrates this quite nicely.

        • Grepehu ( grepehu@lemmy.dbzer0.com ) 
          link
          fedilink
          arrow-up
          3
          ·
          6 months ago

          Nowadays there many neovim distros that come setup with everything and you can learn as you go, but definitely not user-friendly still and the distros kind kill the point for me personally.

          I totally understand prefering users friendly tools, but I think that fornevery software there is always some degree of granularity that makes it user unfriendly.

          You asked about what the hype about vim was, I tell you: it’s the granularity of the configuration it’s 100% not it’s user friendliness.

        • jjj ( jjj@lemmy.blahaj.zone ) 
          link
          fedilink
          arrow-up
          2
          ·
          6 months ago

          It tells you how to exit if you press ctrl+C, which is many people’s first instinct.

    • SleeplessCityLights ( SleeplessCityLights@programming.dev ) 
      link
      fedilink
      arrow-up
      6
      ·
      6 months ago

      Learn Vim motions and use a plugin for another IDE. You are losing so much time and mental energy using a mouse for coding. You can also use something like NVChad with NVim and have a Vim that looks more like modern ides.

      • reksas ( reksas@sopuli.xyz ) 
        link
        fedilink
        arrow-up
        2
        ·
        6 months ago

        maybe it really would be worth the effort to learn 🤔

        • SleeplessCityLights ( SleeplessCityLights@programming.dev ) 
          link
          fedilink
          arrow-up
          2
          ·
          6 months ago

          That’s the really hard part. You will be really slow before you get fast again. I couldn’t practice at work without getting fired for getting nothing done. I had to learn at home doing projects, which also means those project basically made no progress for a while. There are some really cool things that people never talk about. Like NeoVim has this integration with JetBrains rider that acts as a bridge and connects the two. Changes are live on both and you only switch to Rider to debug.

    • Lucy :3 ( 30p87@feddit.org ) 
      link
      fedilink
      arrow-up
      6
      ·
      6 months ago

      Friendly is useful in an application you use once a week. Anything you want to work with daily, like a text editor, needs to be efficient.

    • bamboo ( bamboo@lemmy.blahaj.zone ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      6 months ago

      In terms of command line editors, vim is extremely powerful and relatively easy to get started with, once you know how to get into insert mode and then save/quit. nano/pico are easier to learn but less powerful, and emacs is probably more powerful than vim, and more daunting to learn. Also, vim is installed on almost all systems, so there’s not really any extra work to get started using it.

    • I Cast Fist ( ICastFist@programming.dev ) 
      link
      fedilink
      arrow-up
      4
      ·
      6 months ago

      The cult of vim feels very superior for being able to plow through its user-hostility

    • jeff 👨‍💻 ( jeff@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      6 months ago

      I learned (neo)vim this last year. It really wasn’t that bad. You need to learn like maybe a dozen hotkeys to get going, but after that you can do :h <topic> for everything else. And it’s not even like you lose full functionality of your mouse, at least neovim supports a lot of mouse movements

    • iuminou ( thethunderwolf@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago

      My preferred text editors are Neovim and Kate

      Kate has some convenient features, mainly the easy GUI. Neovim is the CLI text editor that I find works best for me.

      • Denys Nykula ( nykula@piefed.social ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 months ago

        The Vi editing mode in Kate is also good, without a need to install any extensions, just one tick in the settings.

  • electric_nan ( electric_nan@lemmy.ml ) 
    link
    fedilink
    arrow-up
    12
    ·
    6 months ago

    Just like me fr

  • 1984 ( 1984@lemmy.today ) 
    link
    fedilink
    arrow-up
    12
    ·
    6 months ago

    First funny thing ive seen Microslop Copilot do…

  • ramble81 ( ramble81@lemmy.zip ) 
    link
    fedilink
    arrow-up
    11
    ·
    6 months ago

    Ngl, there have been some times when i Ctrl-Z, then found and killed the PID

  • Luminous5481 "Enemy of the State" ( Luminous5481@anarchist.nexus ) 
    link
    fedilink
    English
    arrow-up
    10
    ·
    6 months ago

    Copilot is just like me!

    • technocrit ( technocrit@lemmy.dbzer0.com ) 
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      I didn’t think I could be replaced until now.

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.

  • 485 users / day
  • 1.73K users / week
  • 3.11K users / month
  • 7.26K users / 6 months
  • 463 local subscribers
  • 33.5K subscribers
  • 1.53K Posts
  • 25.1K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code