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 (3)

  1. No need to throw my text to an LLM, just ask the LLM directly.

    I don't think LLMs are the best to generate consistency at the scale of a book. To me it's just a choice between reading human's writing and reading hundred of pages where there is no intention... and maybe full of bullshits. At least my bullshits are due to human error :D

    But I mean I don't want this whole thread to be about LLM. It's just about Vim, a cool text editor in the shell.

    For the gamified version there is the great https://www.vimgolf.com/, and there is also Vim adventures

    EDIT: Also there is the famous snake game where hjkl are the arrow keys: https://themouseless.dev/snake/

    funny enough I wanted to develop a game at one point in Clojure to learn Vim, but I never really finished it. Maybe I should do that.

    Oh and here's a wayback machine from 2021: https://web.archive.org/web/20211002194931/https://themousel...

    Replies (1)
    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.