![]() (Another classical example is WordStar's ^E-^S-^X-^D.) As keyboard navigation's utility became increasingly obvious, more and more new terminals began to come with arrow keys, and software systems often mapped these to the old ways of navigation. Software systems that needed navigation normally provided some sort of navigation approach without relying on arrow keys, and vi's hjkl is a canonical example. Long time ago, many terminals did not have arrow keys, or did not have all four of them. Don't take it personally if you don't agree (I'm talking to you, downvoter). is what I would say to a new user who was interested in my opinion. After a reasonable amount of time if you just can't live without up/down/left/right.don't. So all else being equal why not adopt a recommended habit now rather than take the chance that using arrow keys is inefficient or carpal-killing?Īll in all, consider giving an honest effort to doing things without arrow keys. There's also the fact that whatever choices you make at the start may become habits that are difficult to break if you want to change in the future. Keys, you must move your hand from the text keys to the arrow keys.Ĭonsidering that you might be doing it hundreds of times an hour, this However, you greatly slow down your editing because to press the arrow You can also move the cursor by using the arrow keys. Heck, even Vim's own help nudges you in that direction, though not without hyperbole (" greatly slow down"). They are "best practices" for a reason.they've been employed to good effect by lots of people who came before you and me. I'd pretty strongly recommend that they start with following best practices. While I agree with that no one should be chastised, shunned, excommunicated, or tarred-and-feathered if they choose to use the arrow e your software however you see fit.I wouldn't exude as much of a laissez-faire attitude if I were giving guidance to an open-minded new user. One could argue that maybe if the keyboards were different at this time no one would consider not using the arrow keys a good practice. Note That the argument of don't leave the home row for more efficiency is not that good in my opinion: If you take a look at Why does vim use hjkl you'll see that these keys were chosen because there weren't any arrow keys when Vi was written. ![]() ![]() And if you still use them, it's not a problem, use what you are most efficient with. ![]() Once you get used to vim and get better with the different available motions ( f, t,, , w, b, e, g e, and basically everything in :h quickref) you might realize that you don't use arrow keys that much. Vim even has set mouse=a option if you want to use a mouse! The only real rule to use vim is to use it efficiently: if you feel more comfortable using Left and Right than h and l be it, use the arrow keys. This is (IMO at least) a bad result from vim "purists" circle jerk: new users follow this blindly, some even disable the arrow keys and then they complain that they are not as efficient as before. A lot of people ( including Vim's doc as Layer's answer shows) argue that you shall not use arrow keys because it makes your hands move from the home row (the second line of your keyboard where you have h j k l) and that make you less efficient.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |