Having seen machines that have hundreds of Vim sessions opened because “system integrators” didn’t know how to exit Vim, it should be the very first thing taught
Yes! Sadly a lot of people skip over this despite vimtutor pointing to it at the end. Copy/paste below as the text doesn't need paraphrasing, but also because a lot of comments here seem to be advocating vimtutor as something more than the "brief overview" it is.
This concludes the Vim Tutor. It was intended to give a brief overview of
the Vim editor, just enough to allow you to use the editor fairly easily.
It is far from complete as Vim has many many more commands. Read the user
manual next: ":help user-manual".
Looks like "vimtutor" is primarily text explaining the hotkeys.
For me, the bottleneck to picking up vim has not been merely knowing the hotkeys, but more internalizing the commands and building muscle memory. The interactive game format of this website could possibly solve that, so it appeals to me.
> It is important to remember that this tutor is set up to teach by use. That means that you need to execute the commands to learn them properly. If you only read the text, you will forget the commands! And it's free, not 15 USD or whatever this site is charging.
Okay... but the difference between a piece of text just telling me to use the commands so I remember them versus an interactive trainer that provides a structured setting for me to use them is pretty significant, no?
Back in the day, playing /usr/games/hunt against other people would hone your VI movement keys muscle memory rather quickly.
On the multiuser Unix systems at Purdue, it was typical to have at least half a dozen people on the server, with explosions going off like fireworks. We ran the mod where you could collect 200 ammunition for the nuke, which would destroy a third of the screen. https://man.openbsd.org/OpenBSD-current/man6/hunt.6 We also had Larry Wall's (yes, that one) video game Warp, which was a lot more action-oriented than the original Star Trek video game. It also used the same hjkl movement keys. http://ftpmirror.your.org/pub/misc/unixarchive/PDP-11/Trees/... And of course there was Rogue and Nethack, but those are a lot better remembered these days.
I started with vimtutor, then installed IdeaVim in all my Jetbrains IDEs, it took me about a week to reach the same level of efficiency I had before.
I don't understand how some people can say the learning curve is too steep. Sure it's a bit annoying at first, but it quickly becomes natural, and you don't have to use all features at first. It has allowed me to improve my touch typing a lot. Learning a programming language is a lot more work but hardly anyone ever complain about it. It's been maybe two months and I wouldn't think of using anything else than vim for serious code editing.
> I don't understand how some people can say the learning curve is too steep
I am doing fine with vim for basic editing tasks and use it a lot (mostly when I'm already in the command line). But there's just only so many shortcuts I'm capable of memorizing. This is not a problem for me exclusive to vim, of course. In IntelliJ I also sometimes find an amazing new function that I then don't keep using since I've already exhausted my limited "inclination" of learning new shortcuts. Also, I don't think my productivity gains at this point are going to come from faster input anyway. Sorry, vim, it's not you, it's me.
That's one of the strengths of Vim, though. There's a lot of structure to it, so you don't need to learn nearly as many shortcuts as you otherwise would.
I’m a full time vim user now, and I would say the ‘productivity’ gains are a bit of a pipe dream. That’s not the reason I would recommend anyone learn vim. The best reason for me is that vim is just fun.
When you finally become competent, it is an absolute joy to work with. It makes me think about editing in a totally different way. However the road to get to that point is not fun. I started out with basic tasks in the terminal, & vimtutor reps. Then graduated to using a VS code plugin. I would turn it on for 10-15 minutes at a time a few times a day. Usually turning it off once I realize I wasn’t getting anything done :) But solid reps everyday over a few months and I got to where I learned more complex commands/ movements. Eventually I never needed to turn it off! Then I began the configuration & plugin rabit-hole :)
I think some (maybe vim experts) jumped a bit too quickly to vimtutor. In some regard, I agree. But I tried the initial exercise on my 8 year old and was impressed, so I purchased to have access to the rest. I'd say I'm a sub-par intermediate vim user - knowing enough to know that I don't know or use the true power of vim day to day, but have memorized a few "tricks" that seem to impress basic vim users. Hoping I can leverage this to break a few bad habits I've gotten into. Nice UI and I think the pricing is fair. Hopefully the content expands, but even if the service isn't around more than a few years I feel like the $15 will have been worth it. Nice work!
Edit: question for Kenneth - do you plan on expanding the content?
There’s been decent demand for some more advanced lessons. I’m considering adding more. Anyone who has bought already would get the additional lessons for free
I love vim-adventures. It was the only way I was able to stay motivated to learn vim well enough for it to "stick". I just hate that you can only buy 6 month access to it. I'd happily pay 2-3x the price for lifetime access, but the fact that I can only buy 6 more months makes me pretty sure that they won't be getting any more money from me. I think I would still hop on for a few minutes every few months to practice up on some stuff that I forgot.
Well I think the nice point of doing excercise in a web browser is that you can quickly switch to another tab and search for daring questions such as " by the way why on earth does this monstrosity want me to use hjkl? That don't make any sense!!!!"
https://catonmat.net/why-vim-uses-hjkl-as-arrow-keys For a mostly data/SQL guy wanting to learn more about coding it still don't make much sense but at least I know why and I can move on. When I was trying vimtutor in a CLI interface I was less curious and more WTF F... this is pure madness kind of mood. Dunno if I'll subscribe but nice first experience through this demo.
> the nice point of doing excercise in a web browser is that you can quickly switch to another tab and search for daring questions such as (...)
On the contrary... I'd say that if you are outside a browser, it is somewhat easier to have a browser window side by side and ALT-TAB between both. Having two tabs visible at the same time is a bit cumbersome.
When you consider the concept of home row keys and touch typing I find it very natural, actually. Its ergonomic and very fast if you get into the habit of resting your fingers on the home row.
Though you may have been alluding to more powerful movements!
HJKL also allows you to keep your fingers on the homerow at all times which is really great. I had issues with RSI that when away when I started using Vim properly. Travelling to the arrow keys now feels like a painful task to me! Of course, as a sibling comment mentioned, hjkl is the worst way to move around--"power users" generally only use them to move a char/line or two.
Fortunately, j & k are next to each other, and I never noticed any disconnect in vim w/Dvorak. I never use h & l -- mostly space, w/W, or b/B. But I also learned Dvorak before vim, so I never got used to hjkl.
On the other side, it is probably the most unnecessary inflicted pain for beginners. Even after years of using vim on a daily basis, I can't get used to hjkl and still use the arrow keys. I tried a few times with different approaches, but it never lasted more than a few days. So pushing someone new to use hjkl for navigation is so unnecessary and just kills a lot of motivation for very little value.
Starting with deleting, yanking and pasting would be a lot more fun. Even navigation with gg and G plus numbers would be a lot more useful too. Like when you get an error message that is caused by line 42, you know why you want to use vim next time.
Comments (280) 72 threads
Also, you exit by pressing ESC and then typing :q (hit enter)
But there's actually nothing special about vimtutor here: all it does is write a temporary file and then open it in vim.
Continue this thread — 1 reply
For me, the bottleneck to picking up vim has not been merely knowing the hotkeys, but more internalizing the commands and building muscle memory.
The interactive game format of this website could possibly solve that, so it appeals to me.
Continue this thread — 1 reply
> It is important to remember that this tutor is set up to teach by use. That means that you need to execute the commands to learn them properly. If you only read the text, you will forget the commands!
And it's free, not 15 USD or whatever this site is charging.
Continue this thread — 5 replies
On the multiuser Unix systems at Purdue, it was typical to have at least half a dozen people on the server, with explosions going off like fireworks. We ran the mod where you could collect 200 ammunition for the nuke, which would destroy a third of the screen.
https://man.openbsd.org/OpenBSD-current/man6/hunt.6
We also had Larry Wall's (yes, that one) video game Warp, which was a lot more action-oriented than the original Star Trek video game. It also used the same hjkl movement keys.
http://ftpmirror.your.org/pub/misc/unixarchive/PDP-11/Trees/...
And of course there was Rogue and Nethack, but those are a lot better remembered these days.
I don't understand how some people can say the learning curve is too steep. Sure it's a bit annoying at first, but it quickly becomes natural, and you don't have to use all features at first. It has allowed me to improve my touch typing a lot. Learning a programming language is a lot more work but hardly anyone ever complain about it.
It's been maybe two months and I wouldn't think of using anything else than vim for serious code editing.
I am doing fine with vim for basic editing tasks and use it a lot (mostly when I'm already in the command line). But there's just only so many shortcuts I'm capable of memorizing. This is not a problem for me exclusive to vim, of course. In IntelliJ I also sometimes find an amazing new function that I then don't keep using since I've already exhausted my limited "inclination" of learning new shortcuts. Also, I don't think my productivity gains at this point are going to come from faster input anyway. Sorry, vim, it's not you, it's me.
When you finally become competent, it is an absolute joy to work with. It makes me think about editing in a totally different way. However the road to get to that point is not fun.
I started out with basic tasks in the terminal, & vimtutor reps. Then graduated to using a VS code plugin. I would turn it on for 10-15 minutes at a time a few times a day. Usually turning it off once I realize I wasn’t getting anything done :) But solid reps everyday over a few months and I got to where I learned more complex commands/ movements. Eventually I never needed to turn it off!
Then I began the configuration & plugin rabit-hole :)
Continue this thread — 2 replies
Edit: question for Kenneth - do you plan on expanding the content?
https://vim-adventures.com/
I used it to get to grips with vim
Continue this thread — 2 replies
https://catonmat.net/why-vim-uses-hjkl-as-arrow-keys
For a mostly data/SQL guy wanting to learn more about coding it still don't make much sense but at least I know why and I can move on. When I was trying vimtutor in a CLI interface I was less curious and more WTF F... this is pure madness kind of mood.
Dunno if I'll subscribe but nice first experience through this demo.
On the contrary... I'd say that if you are outside a browser, it is somewhat easier to have a browser window side by side and ALT-TAB between both. Having two tabs visible at the same time is a bit cumbersome.
Who cares? So nit. You could hotkey to switch between two windows of the same program.
Indeed, why? Using hjkl is about the worst way to move around in vim...
Continue this thread — 2 replies
Though you may have been alluding to more powerful movements!
Still works pretty well, i've gotten used to it.
Continue this thread — 1 reply
Starting with deleting, yanking and pasting would be a lot more fun. Even navigation with gg and G plus numbers would be a lot more useful too. Like when you get an error message that is caused by line 42, you know why you want to use vim next time.
Continue this thread — 2 replies
Continue this thread — 4 more replies
Continue this thread — 1 more reply
All comments shown.
Couldn't load more comments. Check your connection and try again.