4 ms·
hjkl: just learn them. These four keys are the most basic thing about vim. Yes there doesn't seem to be much to remember them by, but for these at least, there
by nonamegiven 14y ago
hjkl: just learn them.
These four keys are the most basic thing about vim. Yes there doesn't seem to be much to remember them by, but for these at least, there doesn't need to be. Just muscle through it as long as it takes. It won't take long if you're using vim regularly. Soon you won't think about it, you'll just think "up" and you'll be up a line without consciously thinking "... um ... k".
There are ways to get around these four: arrow keys, macros, whatever. Don't. Just learn them.
Bonus, those keys show up in other vim-like command interfaces, including bash and other shell command line shortcuts. And if you use .inputrc, they'll show up in database and language repls and similar environments.
Just learn them.
- DanBC 14y agoI'm surprised no-one has knocked together a tiny "game" to teach hjkl. Display a big arrow, grab an input, make a nice boop noise if it's right and a nasty beep noise (with a graphic flash) if it's wrong. Keep score of how many key presses were right, and average time for each press.
- stuartmemo 14y agoThey have! Although it's not "tiny". http://vim-adventures.com/ http://vim-adventures.com/
- juan_juarez 14y agoThe original Rogue is a pretty tiny game. By modern standards, Nethack and Angband are fairly small as well.