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

Vim is built different

lemmy.ml

message-square
40
link
fedilink
411

Vim is built different

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 8 months ago
message-square
40
link
fedilink
alert-triangle
You must log in or # to comment.
  • kat_angstrom@lemmy.world
    link
    fedilink
    arrow-up
    70
    ·
    8 months ago

    I don’t know why there’s so much hate for Vim. It’s simple- just use it as your default text editor since you first started using computers, and keep using it forever, and problem solved!

    • TheFogan@programming.dev
      link
      fedilink
      English
      arrow-up
      55
      ·
      8 months ago

      Setup for the overused joke - I’ve been using vim since I first started using a computer, I just can’t quit.

      • Heathcliff@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        Right now I’m at the hospital in the exam yr colon queue! Maybe it helps U too.

      • Alexstarfire@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        VIM really does have everything. Even a fully functional internet browser. 🙂

        • TheFogan@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          yeah, but emacs still wins out in capabilities. https://xkcd.com/378/

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 months ago

      :set nocompat

      Why VIM decided to make itself run just like VI (by default) is beyond me. Isn’t the long name “VI Improved”?

      • nous@programming.dev
        link
        fedilink
        English
        arrow-up
        10
        ·
        8 months ago

        Vims defaults are quite crap overall. It is why everyone needs 100s of lines of configs and many plugins to turn it into something decent. Well worth the setup but it could go a long way to making things nicer to use out the box.

  • darklamer@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    24
    ·
    8 months 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.

  • Landless2029@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    8 months ago

    I’ve recently started administering windows headless. PowerShell over SSH.

    Don’t have this problem on windows server!

    It doesn’t even have a terminal text editor

    I have to install nano or use powershell commands through hoops of fire just to edit a line in a file.

    Or download the file via scp, edit and reupload.

    Pure Insanity.

    • vithigar@lemmy.ca
      link
      fedilink
      arrow-up
      9
      ·
      8 months ago

      Clearly you should install Edit.

      https://github.com/microsoft/edit

      • Kojichan@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        8 months ago

        Classic DOS editor for text files, batch coding, and QBasic coding. Good times.

      • Redex@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        8 months ago

        Ok that’s really cool. It looks like it’s really new? Like 3 months old?

        • DacoTaco@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          8 months ago

          It was announced in may on microsoft build event ^^
          I call it nano for windows haha

        • vithigar@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          Yep, recent blog post about it:

          https://devblogs.microsoft.com/commandline/edit-is-now-open-source/

      • nul9o9@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        I installed vim/nvim on my work windows pc. I don’t often need to edit text files in terminal, but its nice having its functionality.

      • Landless2029@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        My actual issue is I need approval to install anything on any server. This might get approved since it’s MS though! Thanks.

  • andrewth09@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    8 months ago

    You have heard of :wq, but have you heard of ZZ

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      How about :x.

      • furry toaster@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        how about alt+printscreen lift printscreen but keep holding alt, now press b, you succesfully exited vim, works for emacs too!

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          How about

          • furry toaster@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            2
            ·
            8 months ago

            did it work?!

            • Victor@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              8 months ago

              I feel free, so… I guess?

  • donut_delivery@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 months ago

    • furry toaster@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      try ex

  • Tillman@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    Vim is pretty amazing. Almost everywhere now too.

  • whodatdair@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    8
    arrow-down
    6
    ·
    8 months ago

    ‘vimtutor’ is your friend. Nobody sane uses vim as an IDE, but if you have to ssh to a host to fuck with a config file it’s pretty nice to know because you can guarantee that most distros have at least vi, if not vim.

    • nous@programming.dev
      link
      fedilink
      English
      arrow-up
      23
      ·
      8 months ago

      Nobody sane uses vim as an IDE

      Huh? Many people do this. With the right plugins and config it is just as capable as any IDE.

      • IrateAnteater@sh.itjust.works
        link
        fedilink
        arrow-up
        16
        arrow-down
        5
        ·
        8 months ago

        Many people do this.

        Many people are insane.

        • furry toaster@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          wait till you see emacs, and dont even let me mention vscode that thing runs on JS!

      • whodatdair@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        I’ve met both the good kind of insane genius that uses it as an IDE and the crazy-board nutjob that uses it as an IDE, but both are decidedly not sane.

    • NaibofTabr@infosec.pub
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      3
      ·
      8 months ago

      If you’re just doing a quick config edit, nano is significantly easier to use and is also present in most distros.

      Vi/Vim is useful as a customizable dev environment, but in the present there are better, more feature-rich development tools - unless you are specifically doing a lot of development in a GUI-free system, for some reason.

      • timbuck2themoon@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        8
        ·
        8 months ago

        I mean, if youre continually updating files on remote take the time to learn vim. My God it’s a million times more efficient. Even using the keybindings in an ide makes sense.

        That and Im not aware that rhel distros at all have nano built in. Nothing on a random rocky 9 box I randomly sshed into just now.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          8 months ago

          Helix crew chiming in. 🙋‍♂️

          • timbuck2themoon@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            8 months ago

            I need to give this a go again. Tried it a while back but wasn’t impressed enough to keep it. Been using pulsar since which has mostly been nice.

      • furry toaster@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        8 months ago

        vim is more feature rich than nano, nano is easier to use for the first time, after you learn the very basics vim is pretty much just as easy to use and way more feature rich

      • nous@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        8 months ago

        What editor is more feature-rich then vim? Out the box it is lacking some sane config but it is one of the more powerful and flexible editors out there - more then a rival for any modern IDE.

    • donut_delivery@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      If using vim makes people insane, then what does using ed makes me?

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

      Nobody sane uses vim as an IDE

      True, same people use unix as their IDE and vim as the editor therein.

  • Stomata@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    8 months ago

    So true

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.

  • 208 users / day
  • 1.61K users / week
  • 4.3K users / month
  • 9.89K users / 6 months
  • 1 local subscriber
  • 29.6K subscribers
  • 1.51K Posts
  • 26.9K 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