Hacker News new | past | comments | ask | show | jobs | submit login

This is fantastic. Never knew about it, but now I know what to give to kids interested in learning programming!



My 9 and 11 years olds write Python in VIM, and have been for about two years. Learning VIM itself can be fun, if you teach it properly. And it is a skill for life.


I'm 38 and use vim since Amiga days and vi before that and would never even consider giving vim to anyone starting out!

How do you teach kids that? I know kids learn fast, but still. Aren't they in a phase where they ought to catch on 'normal' things first in apps, isn't wrestling with vim averting they concentration from what they should be paying attention to (python)?


Hi. When I was about 9, I asked my dad to teach me to program, and he started with vim. Yes, it was a bitch to pick up, but I don't think it really detracted from learning and it's still what I use today so it can't have been that traumatizing.


> isn't wrestling with vim averting they concentration > from what they should be paying attention to (python)?

Quite the opposite. Instead of teaching them "use this arrow key" I'm teaching them "use this mode". And since they are paying mostly attention to the Python, the VIM skill that they are picking up along the way is hardly even noticed.


This comment is peak hacker news.


FWIW, I use vim to code Mu. :-)

In a similar way to another respondent, I use vim because my first computer at university had it (well, Vi) and it's always there.


And tips on teaching it properly?


Motivation!

We started with a goal, in our case it was to recreate the car from the `gti` command (git wrapper). I created a file with maybe a dozen lines of 72 spaces, and let them get to work. They started with basic hjkl navigation and the i command, then they learned to replace with r and jump to specific location with /. After that I was simply answering their questions, as they already understood that everything has a shortcut.


I've forwarded this video: https://www.youtube.com/watch?v=5r6yzFEXajQ to several friends, and they all 'got it'. No one moved to vim though.


"i" Shut the fuck up "esc, w q"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: