An unofficial, read-only Hacker News reader. Join the beta →

Show HN: I wrote an entire Vim manual over 4 years (opens external site)

304 points by thanato0s 1 day ago | themouseless.dev | 107 comments on HN

View full thread · View on Hacker News

Comment thread (14)

  1. In my experience most younger people in the field are here for the payday and not for love of computers. They're significantly less experimental or willing to try new things (paradoxically even when they would drastically improve their output efficiency by doing so.)
    Replies (2)
    1. I don't know. My blog is mostly about experimenting and learning, and I received many emails from young lads who had some questions and were genuinely interested about how things work under the hood. I wouldn't generalize, although it gets easier and easier not to care about how things work for sure. Still, understanding what we are doing is better to have some feeling of accomplishment I suppose? I mean I don't like to automate away what I like to do :D
    2. I don't exactly hate vim, but I am vocal about it, because it's kicking the can down the road.

      For example most developers today haven't even been born when keyboard with arrows drawn on hjkl was discontinued. HJKL is neither intuitive nor ergonomical. Why does it persist as default? Because existing vim people are there for tradition and not good engineering and so are afraid of experimenting and trying new things?

      Replies (1)
      1. I agree that hjkl is not the most intuitive, it took me a while to use that instead of the arrow keys. That being said, on a "standard" keyboard, the arrow keys are always further away from the home rows, and so it's annoying to always move your hands. So I disagree that it's not ergonomic.

        Of course if you can configure your keyboard as you wish it's a different question; you might move the arrow keys around the home rows if you want. But then the deeper you go into Vim the less you use hjkl anyway...

        Also, here's a sokoban when you can use arrow keys or hjkl: https://themouseless.dev/sokoban/

        Replies (1)
        1. The choice is not binary between hjkl and arrow keys.

          It could be (non-exhaustive list):

          jkl; - actual resting home row position

          ijkl - no hand movement, no pinky usage (also mirrors arrows and controls that are structured that way outside of your keyboard)

          asdf - right hand resting home row position

          esdf - right hand, no hand movement, no pinky (gamers used to wasd would love it)

          Having navigation single key shift away from resting position has no upsides that I can see. It takes premium home row space, except it fits only 3/4. So you either shift your hand all the time, or your index finger is now busy with both right and down and is moving laterally.

          And if it's not actually important, why is it on home row and not say bottom row: m,./ - you'd just curl your fingers and access movement without shifting of your hand.

          So the explanation today is nothing other than "Our ancestors did it this way and so shall you, youngster. Scientific basis is overrated and we are not trying new things.".

          Replies (1)
          1. You do realize that the vim keybinding is inherited from vi? And that vi is decades all and had its keybinding replicated across a lot of software. Also some of the keybindings comes from ed and ex commands. So most of your suggestions conflict with those

            Also jk is quite nice where they at. I read code more than I write it, and if its formatted for 80 columns, I rarely need to go left or right. So using my strongest fingers is quite nice.

            Then you embrace search based navigation and wider movements and you find that you rarely used hjkl other than small movements around a small area.

            Replies (2)
            1. Yes, obviously I know where it comes from. After all I already mentioned keyboard with arrows on hjkl - that's https://en.wikipedia.org/wiki/ADM-3A

              My point was to illustrate that talking younger people not experimenting or improving is a bit hypocritical when coming from vi/vim community which is comparatively speaking a fossil stuck on first draft from 1976 (designed for hardware that no longer exists) that haven't changed anything for the better because they are already used to something.

              Continue this thread (2 replies) →

            2. > vi is decades all

              Completely unrelated, but I find this typo interesting.

              My suspicion is that you meant to write "old", but phonetically "all" is quite similar, and your fingers just produced the sound in your head. I'm guessing you've been touch-typing for a long time.

              It's amazing that the human brain works that way.

              Continue this thread (1 replies) →