Alien Top
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
moonleay@feddit.org to Programmer Humor@programming.devEnglish ·
edit-2
6 个月前

Are you vimming yet?

feddit.org

message-square
52
fedilink
561

Are you vimming yet?

feddit.org

moonleay@feddit.org to Programmer Humor@programming.devEnglish ·
edit-2
6 个月前
message-square
52
fedilink
alert-triangle
You must log in or register to comment.
  • Malix@sopuli.xyz
    link
    fedilink
    arrow-up
    59
    ·
    6 个月前

    well, I am using vim, but I don’t know how to use vim.

    Am I vimming?

    • squirrel@discuss.tchncs.de
      link
      fedilink
      arrow-up
      36
      ·
      6 个月前

      Yes, you vom.

      • Zloubida@lemmy.world
        link
        fedilink
        arrow-up
        19
        ·
        6 个月前

        They vom it.

    • 1984@lemmy.today
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      6 个月前

      If you dont know how to exit vim, then yes you are…

      • Malix@sopuli.xyz
        link
        fedilink
        arrow-up
        12
        arrow-down
        1
        ·
        6 个月前

        :what^C^C^C^Z^Z^C^ESCFFUUUUUUUUUU...

        • 1984@lemmy.today
          link
          fedilink
          arrow-up
          11
          ·
          6 个月前

          I remember that experience first time and how I had to kill the process from another shell :)

          This was before the internet so couldn’t exactly google it either.

          Fun times. But I figured it out by reading the man page.

        • datavoid@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 个月前

          deleted by creator

      • AwkwardLookMonkeyPuppet@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        6 个月前

        Escape, :wq!

        Escape enters command mode

        : prompts the command

        W = write

        Q = quit

        ! forces it

  • kittenzrulz123@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    33
    arrow-down
    2
    ·
    6 个月前

  • David From Space@orbiting.observer
    link
    fedilink
    arrow-up
    26
    arrow-down
    2
    ·
    6 个月前

    unrepentant nano gang rise up

  • seaQueue@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    6 个月前

    Emacs users be like

  • Noble Shift@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    6 个月前

    deleted by creator

  • xlash123@sh.itjust.works
    link
    fedilink
    arrow-up
    16
    arrow-down
    2
    ·
    6 个月前

    I’m always vimming!

    Not because I want to though. It’s because I don’t know how to stop…

    • Noble Shift@lemmy.world
      link
      fedilink
      arrow-up
      30
      arrow-down
      2
      ·
      6 个月前

      deleted by creator

      • bandwidthcrisis@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        6 个月前

        That’s, like, halfway down the list of things to try!

        https://github.com/hakluke/how-to-exit-vim

    • bruhduh@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      6 个月前

      Can’t stop won’t stop

      • 0ops@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        6 个月前

        We’re you referencing this by chance?

  • sorter_plainview@lemmy.today
    link
    fedilink
    arrow-up
    13
    ·
    6 个月前

    Tried neovim a couple of times. Stopped after 10 or 15 mins. Anyone has useful tips to get used to vim/neovim?

    • grrgyle@slrpnk.net
      link
      fedilink
      arrow-up
      25
      ·
      6 个月前

      Just get used to

      • using movement (hjkl),
      • going between insert and normal modes (i and esc),
      • undoing (u from normal mode),
      • and saving (:w and :wq).

      Don’t try to do it all at first, just get comfortable with the essentials. You can even just stay in insert mode (the only mode in most editors) at first.

      Keep a vim basics cheat sheet handy for a couple weeks as you’re building in muscle memory, then slowly work in more advanced techniques and combinations.

      It doesn’t take long before you start having a lot of fun just manipulating text.

      PS here’s a decently basic cheat sheet I found: image describing basic vim keyboard bindings and commands

      • Passerby6497@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        6 个月前

        I always forget about :wq, mainly because escing out of interactive mode and hitting ZZ is so much quicker.

    • akkajdh999@programming.dev
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      edit-2
      4 个月前

      deleted by creator

    • TechieDamien@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      6 个月前

      Go through the tutorial. It is quite good and teaches things incrementally with real world examples. Just run vimtutor to start.

      • Simmy@lemmygrad.ml
        link
        fedilink
        arrow-up
        1
        ·
        6 个月前

        But why learn all that? Nano user here.

        • TechieDamien@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          6 个月前

          Depends how much time you spend in a text editor. If it is just for a few config edits and stuff, honestly there is little reason to learn. The real benefit is if you spend a lot of time editing text due to the time saved using more powerful commands. There is the additional benefit that vi/vim is installed on practically any Linux box, so you will almost always have a familiar editor to hand in an unfamiliar environment.

    • hakunawazo@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      6 个月前

      I became a fan after I got used to nice color schemes, buffers/tabs, horizontal/vertical splitting, file browsing with NERDTree and highlighting changes with GITGutter.

      You ask for tips? Add VIM commands you use regularly (like paste mode toggle for example) to a keyboard shortcut (like leader key + p) in your .vimrc settings file. It increases working speed.
      Also add some plugins, they are fun and add useful functions from other editors like Sublime (ctrl-p, vim-multiple-cursors).

    • zarkanian@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      6 个月前

      There are plenty of cheat sheets online. The main thing is understanding that there are different modes, knowing what they do, and how to switch between them and issue commands.

  • pinkystew@reddthat.com
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    5
    ·
    6 个月前

    The first time I used VI I typed a few characters, then hit backspace to delete some characters. Backspace doesn’t delete characters. I closed VI and never opened it again.

    • hakunawazo@lemmy.world
      link
      fedilink
      arrow-up
      19
      ·
      6 个月前

      Yeah yeah, brag about being able to close VI the first time of use…

    • fin@sh.itjust.works
      link
      fedilink
      arrow-up
      11
      ·
      6 个月前

      But how did you close it?

      • pinkystew@reddthat.com
        link
        fedilink
        English
        arrow-up
        5
        ·
        6 个月前

        Carpenter’s axe to the utility line outside my house

        • nickwitha_k (he/him)@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          6 个月前

          As a long-time vim enjoyer, I like your gusto. Imagine if you could apply regexes to that carpenter’s axe.

          (Also, what sort? Do you have one of those awesome Gransfors Bruks ones?)

    • AwkwardLookMonkeyPuppet@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      6 个月前

      You need to type i first to enter insert mode.

      • QuazarOmega@lemy.lol
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        6 个月前

        Now I can’t exit HELPPP^C^C

        • AwkwardLookMonkeyPuppet@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 个月前

          https://lemmy.world/comment/13282877

    • zarkanian@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      6 个月前

      And you weren’t curious about how it worked? Not at all?

      • pinkystew@reddthat.com
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        5
        ·
        6 个月前

        A million better alternatives exist. I was curious about them.

  • Kojichan@lemmy.world
    cake
    link
    fedilink
    arrow-up
    9
    ·
    6 个月前

    hides in Kate and a Codium-based IDE

  • jbrains@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    6 个月前

    I kakoune instead.

    • Jumuta@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      6 个月前

      fellow noun->verb user :)

      helix superiority however.

      • jbrains@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        6 个月前

        Pitch me. I could switch, but it would help a great deal to understand more about why. I’m open to change, but not eager to change.

        • QuazarOmega@lemy.lol
          link
          fedilink
          arrow-up
          1
          arrow-down
          2
          ·
          6 个月前

          Rust 🦀🦀🦀

        • Jumuta@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          arrow-down
          2
          ·
          6 个月前

          purple 🟣

    • grrgyle@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      6 个月前

      How do you like it? I tried it a few years ago, but my vim muscular memory made it feel as uncomfortable as learning vim for the first time.

      • jbrains@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        6 个月前

        I’m very happy. I had the same early experience as you, but I kept with it. I’ve been using it several years now. When I’m forced back to vim, my fingers remember just enough, but I have to undo pretty often.

  • K̺͆e̺͆t̺͆a̺͆m̺͆i̺͆n̺͆e̺͆@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 个月前

    🪢 :q!

    • geneva_convenience@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      6 个月前

      Progress lost

    • AwkwardLookMonkeyPuppet@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 个月前

      Sorry bub, but you just wasted your time

  • Lord Wiggle@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    6 个月前

    Sorry for living under a rock, but what is vim?

    • pmk@lemmy.sdf.org
      link
      fedilink
      arrow-up
      11
      ·
      6 个月前

      It’s a text editor. It all began with the ed editor, which is very simple and does one thing, it edits files. Then someone extended it into the ex editor. Then someone added a new feature: being able to visually see the file you’re editing, which became vi, the visual editor. Then someone improved that, into vim. What began as an editor where you needed to be fluent in regular expressions but otherwise was simple, is now a very complex editor, moving the functionality of the old UNIX tools into the editor itself.

      • Lord Wiggle@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        6 个月前

        Thank you for explaining!

        • nickwitha_k (he/him)@lemmy.sdf.org
          link
          fedilink
          arrow-up
          4
          ·
          6 个月前

          It’s also available on nearly every unix-like machine since the 70s. So, super useful to know how to use. I personally also like (neo)vim as an IDE and its optional regex functionality because that allows once to efficiently edit massive files with minimal effort.

  • T156@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 个月前

    At least it’s better than ed.

    ?

    • pmk@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      6 个月前

      The same arguments about learning vi/vim/neovim holds for ed. It’s not intuitive, you need to get used to it, you need to learn, etc. People choose not to learn vim for the same reason vim users don’t want to learn ed.

  • bluewing@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    6 个月前

    Vi or die!

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    6 个月前

    i do all my vimming in visual studio code

    https://marketplace.visualstudio.com/items?itemName=vscodevim.vim

    • fl42v@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      6 个月前

      I prefer https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim since emulators are generally not 1:1 compatible in the most unexpected places.

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.

  • 1.58K users / day
  • 4.83K users / week
  • 9.35K users / month
  • 17.8K users / 6 months
  • 15 local subscribers
  • 23.1K subscribers
  • 1.24K Posts
  • 27.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • adr1an@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org