• darklamer@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    13
    ·
    2 days ago

    I switched from vi to vim in 1994 and found it immediately obvious how to quit — it was just like vi!

    I guess I’ll never understand these memes.

  • Oriel Jutty :hhHHHAAAH:@infosec.exchange
    link
    fedilink
    arrow-up
    17
    arrow-down
    2
    ·
    edit-2
    2 days ago

    POV: You open vim for the first time.

    ![Screenshot of vim start screen. The instruction to exit vim is highlighted in red. It reads:

    VIM - Vi IMproved

    version 9.1.697 by Bram Moolenaar et al. Modified by team+vim@tracker.debian.org Vim is open source and freely distributable

    Help poor children in Uganda! type :help iccf<Enter> for information

    type :q<Enter> to exit type :help<Enter> or <F1> for on-line help type :help version9<Enter> for version info](https://media.infosec.exchange/infosec.exchange/media_attachments/files/114/654/520/326/340/201/original/3df1e7f1fb9b8619.png)

    • pinball_wizard@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      12 hours ago

      Fair, but there’s a worse experience possible.

      For a time, many people’s first encounter with vi was when it auto-opened a temporary editor to ask them to submit a commit message for the git command they just ran.

      This experience skips the vi “welcome” screen, because a file is open.

      As a bonus challenge, git did not inform the user what editor is in use, and the user had no particular reason to even expect an editor to appear, based on what they were just doing.

      None of this was the fault of vi, really. But it was a terrible introduction.

      It got better when various operating systems changed their default command line editor to nano, and git added some helpful adjustments - “if certain settings are not configured, assume a new user and show verbose welcome messages”.

      • Simon 𐕣he 🪨 Johnson@lemmy.ml
        link
        fedilink
        arrow-up
        1
        arrow-down
        3
        ·
        edit-2
        1 day ago

        The image shows the last state of a terminal emulator of person without command line or git knowledge. The person attempted to run git commit and is now blaming the result of a specific configuration on their system that launches a vi derivative on the vi derivative itself. This image is expected to convince the viewer that the vi derrivative is to blame.

  • Palacegalleryratio [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    2 days ago

    Type h for “hello” does literally nothing… ok… thought this was a text editor why can’t I even write… mash esc still no response, try typing “hello” but no matter how many time I mash h nothing happens. Right let’s leave and find a guide. Right so closing a terminal program that’s usually Crtl-c nope that’s done nothing, erm, what else works, nano uses Ctrl-x let’s try that, nope. Erm kill nope nothing, fuck this I’m just closing my terminal. - my first vim experience.

    • expr@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      8 hours ago

      What do you mean “build our dev environments around vim”? If you mean they write dev tooling in vimscript and explicitly require everyone to use it, I actually agree with you. I don’t believe employers should really ever force any particular editor or IDE if the work is getting done. I would be equally annoyed by a workplace forcing me to use vscode instead of vim. It would slow me down way too much.

      If you are just complaining that they build dev tooling as a CLI, hard disagree. That is absolutely what dev tooling should use because it’s actually universal and can be used regardless of your editor choice.

      At my workplace, our dev tooling is done via CLI and our developers use vim, emacs, and vscode. Because it’s all CLI, it’s easy for individual developers to add their own scripts to automate parts of their workflow as they see fit (and if such automations are deemed useful by the group at large, it will get merged into our shared devtools repo). We even have some editor-specific stuff in there people have written that they find useful, but it’s entirely optional.

        • lagoon8622@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          12
          arrow-down
          2
          ·
          2 days ago

          You don’t grok vi.

          That’s fine and you don’t need to. But don’t knock it if you haven’t even taken time to learn it.

          Yesterday I needed to insert a tab character on every line from 2 to 31,000 something. I made the line selection keystrokes in Cursor - it immediately crashed so hard I had to restart my PC.

          Vim did it in a few milliseconds.

            • expr@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              8 hours ago

              Vscode definitely can’t handle large files like vim can. I can open files that are multiple GBs in vim without issue. Vscode definitely cannot.

            • exu@feditown.com
              link
              fedilink
              English
              arrow-up
              7
              ·
              2 days ago

              You always have to learn the processes in a new company, this is just part of that. And if they don’t give you the explanations, training and time to learn, that’s a good sign you wouldn’t want to be at this company.

              Maybe also speak to some of your new colleagues, whether they had similar trouble and see if you can improve the process for the next person.

            • lagoon8622@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              6
              arrow-down
              2
              ·
              2 days ago

              You can learn enough Vim to be productive in it in about 3 minutes.

              You can install some plugins; your experienced coworkers have probably figured that out for you.

              It’s ok to be a junior, but you should investigate things from time to time. You may even surprise yourself.

              But you do you.

              • sem@lemmy.blahaj.zone
                link
                fedilink
                arrow-up
                3
                ·
                1 day ago

                I’m a vim novice. I basically know just enough to save files or quit, paste with formatting, and “insert” changes. I think I used to know how to find within a file, and I’m sure I could learn again in an instant, but I haven’t had to do that in a long time for my noobish tasks. I know it is way more capable than that, but I haven’t had to learn more features yet since I use it at a ‘nano’ level.

                I agree it only takes 3 minutes to learn these things, but personally it took me a bit longer to make them muscle memory.

                I get it if someone were to be annoyed that things they knew how to do in another program they had to re-learn in vim, but this kind of thing it seems like you would just accept that you’re going to be frustrated and then put in the work to learn it so you can work more easily with your coworkers or whatever. Like you said, vim has serious advantages, and it seems a little short sighted to not be willing to learn from people that want to train you up in a tool to be more effective.

                • lagoon8622@sh.itjust.works
                  link
                  fedilink
                  English
                  arrow-up
                  8
                  arrow-down
                  3
                  ·
                  2 days ago

                  Last post from me. I have given you accurate information in good faith. Since you’ve decided to become aggressive and hostile, I can tell that you’re an unpleasant person and I’m glad you’re not on my team.

                  Good luck and have fun out there.