An unofficial, read-only Hacker News reader.

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

312 points by thanato0s 3 days ago | themouseless.dev | 118 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. Everyone remembers the hjkl keys, even though almost no-one has an ADM-3 keyboard where those keys have arrows engraved on their tops, or even an ADM-3A itself (let alone an ADM-3).

    Few in contrast remember that vi from the start had forward space (SPC), backward space (BS), next line (⎈N SO) and previous line (⎈P DLE) for navigation in normal mode.

    I hope that your vim book teaches arrow keys first, arrow keys being a thing that we've had in the world of terminals since around 1970, the forwardspace/backspace/next/previous next, and the hjkl last. I think that it really does not serve novices to teach them the way to use vim that matches a 1976 terminal that they do not have, and does not match what the modern keyboard that they do have in front of them has.

    * https://news.ycombinator.com/item?id=48753333

    Don't make the mistake that Dougherty and O'Reilly made in their 1987 book, of claiming that some terminals might not have arrow keys. Even by 1987, terminals without arrow keys had become a rarity, thanks to the PC revolution and whatnot. 40 years later still, that's an understatement.

    Replies (1)
    1. I recommend in the book to directly use hjkl and disable the arrow keys... It's how I learned Vim and I'm happy with that. I did everything at the same time: how to type correctly, how to install and drive Arch Linux (btw), how to use a shell-centered workflow. It was really cool to dive deep in all of that, and it was less exhausting than I thought, especially because all these tools can be linked somehow.

      I don't know, I just find that staying on the home rows is super comfy. Of course you could map your keyboard differently and put the arrow key closer to the home rows or something, but so many TUI and CLI tools use hjkl I still think it's useful to learn them. And I don't think it's that hard.