Yeah, I had the same feeling, not sure about what to say, I wouldn't like being wrong about it and say anything negative about the author in case he is really just trying to help, but there's no time-efficient way to check for these things at this point in time.
Since the efforts of putting vim everywhere are always welcome, I will give some random opinions about it here:
1. The best way of teaching it would probably be a gamified version, not sure if anyone did this yet. People have really low attention spans nowadays. Unless I'm reading a novel or something like that, I will throw text into an LLM to get a summary anyway, even if I feel a bit bad about it (it's just more efficient).
2. Personally I've always referenced people to Luke Smith's (otherwise known as "Vim Diesel") video on vim for beginners to learn most of the useful commands.
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
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.
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.
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.
> The best way of teaching it would probably be a gamified version
I'd like to offer a counterpoint. I don't think there is any teaching method that works for everyone. I know gamified Vim tutorials is a thing and a few pop up on "show hn" sometimes. but personally, I lose interest whenever I come across a gamified tutorial. Gamified vim tutorials, gamified shell tutorials, gamified coreutils tutorials. None of them work for me. I immediately lose interest.
But give me a well written book (like the one in this 'show hn') and I'm hooked and I'm happy to spend hours and hours on it, digest it, re-read it, go back to it 5 years later, etc. etc.
Since the efforts of putting vim everywhere are always welcome, I will give some random opinions about it here:
1. The best way of teaching it would probably be a gamified version, not sure if anyone did this yet. People have really low attention spans nowadays. Unless I'm reading a novel or something like that, I will throw text into an LLM to get a summary anyway, even if I feel a bit bad about it (it's just more efficient).
2. Personally I've always referenced people to Luke Smith's (otherwise known as "Vim Diesel") video on vim for beginners to learn most of the useful commands.
Replies (3)
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)
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)
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.
I'd like to offer a counterpoint. I don't think there is any teaching method that works for everyone. I know gamified Vim tutorials is a thing and a few pop up on "show hn" sometimes. but personally, I lose interest whenever I come across a gamified tutorial. Gamified vim tutorials, gamified shell tutorials, gamified coreutils tutorials. None of them work for me. I immediately lose interest.
But give me a well written book (like the one in this 'show hn') and I'm hooked and I'm happy to spend hours and hours on it, digest it, re-read it, go back to it 5 years later, etc. etc.
Try https://vim-adventures.com/ :-)