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

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

309 points by thanato0s 2 days ago | themouseless.dev | 115 comments on HN

View full thread · View on Hacker News

Comment thread (11)

  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.

        Replies (2)
        1. You don’t reinvent your fundamentals when they work well enough. But that doesn’t stop someone from experimenting, to find their boundaries and coming up with something new. Vim has been refined from its first iteration to something that’s very powerful. And there’s a lot of plugins that expanded its power, all created via experimentation.

          You don’t have to break what’s working to create something better. Disruption is not the only way to innovation.

          Replies (1)
          1. > You don’t have to break what’s working to create something better.

            Which is an argument for non-vim users to not learn vim as that would require breaking the working workflow they have.

            Personally I would be interested in evidence-based editor. Where actions are structured and put on keyboard not by vibes, but by thoughtful consideration of actual usage. Wouldn't really increase my productuvity, especially not in new era, but it would be interesting to have if only to "feel like a hacker".

            Replies (1)
            1. Trying something new is not always breaking the working workflow either. The basics are in the sample I link in the first comment, it's just interesting to see how a tool can work differently.
        2. Frankly I'm pretty sure there are still "younger people" happy to learn stuff, even if it's about a fossil. I wanted to find some dinosaur bones when i was a child so maybe I went for the text editor instead.
          Replies (1)
          1. People learn stuff all the time. Just not necessarily same stuff you do.

            I was just raising the point that if vim users refuse to change, it's reasonable to expect people to not change to vim usage.

            Replies (1)
            1. I'm not so sure we're refusing to change either, we just like Vim. I tried other text editors but I always come back to it.

              It's reasonable to expect people to do whatever they want (to some degree of course), and I can only encourage that. There’s no accounting for taste.

      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.

        Replies (1)
        1. Lol!

          Not sure what's happened there. I was writing this on my phone and I do a version of touch typing there with 2 thumbs. Sometimes I start with an idea, type some words, then stop to think more and then restart typing. When rereading (which I don't do often for HN comments) there are always weird typos and grammatical errors.

          I'm not a native speaker. I don't do translation in my head, but I have to consciously think about the idea before typing it (other than platitudes like "How are you?" and "You're welcome" which are basically O(1)). My mind dictates and I type. So the interruptions are like time glitches in my typing for another person, but was perfectly reasonable while I was doing it.

          That also reminds me when I was at school and my classmates didn't want to do practice exercises with me. I got the habit of only jotting down checkpoints when I solve problems as writing everything would have slowed me down a lot. So random formulas, figures, and numbers keep appearing with no visible links between them.