Live data from Hacker News

Learn Vim motions with an ice-cream van

thisismodest.com

51–53 of 53 posts

Re: Learn Vim motions with an ice-cream van

#51
post #4

Yes, hjkl navigation is certainly one of the things that should learn about a vi clone. But are novices well served, in the 2020s, by that being the primary thing that they learn before anything else? This is not a criticism of this WWW site specifically. The VIM doco has the same priorities, teaching hjkl navigation before arrow keys. (So do nvi2 and NeoVIM.) The problem is that the received wisdom, that arrow keys…

The reasons I still use vi-style editing in editors are: 1. Efficiency, so I can be fast 2. Minimal stretching and whole-hand movement, so I don't get painful wrists and so I can be accurate. Using a keyboard's arrow keys doesn't fit with 2.

That does not really present any argument that we should be teaching your way of working to VIM novices, instead of teaching them the obvious arrow keys first and the hjkl navigation later.

Re: Learn Vim motions with an ice-cream van

#52
post #50
post #44

Earlier quoted context omitted.

I think the reason to use and teach those keys first, is that they can be used in all the motions aswell. The arrow keys can´t and thus do not really make much sense in a vi context.

The arrow keys can be used as motions for operators in VIM. Try them. This is also true for nvi.

Ah, that's interesting, i had no idea. Thanks. :D

Re: Learn Vim motions with an ice-cream van

#53
post #51

Earlier quoted context omitted.

The reasons I still use vi-style editing in editors are: 1. Efficiency, so I can be fast 2. Minimal stretching and whole-hand movement, so I don't get painful wrists and so I can be accurate. Using a keyboard's arrow keys doesn't fit with 2.

That does not really present any argument that we should be teaching your way of working to VIM novices, instead of teaching them the obvious arrow keys first and the hjkl navigation later.

You're right, It presents an argument that we shouldn't teach them 'the obvious' arrow keys at all.
Post reply on HN