2 ms·
>To navigate a file on Vim, use the letters h,j,k, and l.These commands are called motions, as they move the cursor. The keys h and l will move your cursor hori
by jasode 7y ago
>To navigate a file on Vim, use the letters h,j,k, and l.These commands are called motions, as they move the cursor. The keys h and l will move your cursor horizontally (one character at a time), while j and k move vertically (one line at a time). If you put your hand on them, the layout sorta makes sense.
The way the author explains it above (mechanical) is the way I was initially taught over 20 years ago. However, it wasn't effective for my learning style because it felt random and incoherent. So _why_ does 'h' key move left? And _why_ do I have to press 'i' for "insert" mode when I didn't have to do that in Notepad/MSWord? My UNIX instructor couldn't answer those questions. He just said, "I dunno, it's just the way it is." As a sysadmin, I memorized it but it was a very unsatisfying way to learn vi.
My brain is most receptive to learning when it knows the underlying philosophy of why things are designed the way they are. Previous comment with some links.[0]
Once one knows the design intentions behind vi, the learning feels much less random.
[0] https://news.ycombinator.com/item?id=20605840 https://news.ycombinator.com/item?id=20605840
- celticmusic 7y agoThe other problem is that he doesn't have a sample.txt file for people to download, so he's asking them to open a blank file, then he teaches them how to move around (but there is no text), and only after all that does he start teaching them how to actually insert text.