3 ms·
I really can't recommend Drew Neil's resources enough. The vimcasts¹ series are great if you're the sort of person who likes videos to learn with, and both his
by JNRowe 3y ago
I really can't recommend Drew Neil's resources enough. The vimcasts¹ series are great if you're the sort of person who likes videos to learn with, and both his books are excellent²³. [The books may appear to be getting a little long in the tooth, but their contents are still very applicable to today's usage.]
My own "trick" for improving my vim usage was to start mapping things to <Nop> that have better replacements, it is a great way to shock yourself out of bad habits like hjkl movements or reliance on /. Then again, I think text-objects and the items below it in motion.txt are the main to use vim so YMMV.
¹ http://vimcasts.org/ http://vimcasts.org/
² https://pragprog.com/titles/dnvim2/practical-vim-second-edition/ https://pragprog.com/titles/dnvim2/practical-vim-second-edit...
³ https://pragprog.com/titles/modvim/modern-vim/ https://pragprog.com/titles/modvim/modern-vim/
- amelius 3y agoThanks! Now I'm curious what is bad about hjkl movements :)
- echelon 3y agoYou tend to overuse arrow key-like navigation instead of developing chords of movements. I got stuck in that suboptimal mode and had to break myself of it.
- JNRowe 3y agoI perhaps shouldn't have said "bad," as my opinions sadly aren't universal truths ;) However, my reasoning is the same as noted in echelon's reply. There are often far better ways to move around as described in ":h text-objects" and ":h motion.txt" more generally.
- fortunateregard 3y agohttps://github.com/m4xshen/hardtime.nvim https://github.com/m4xshen/hardtime.nvim https://github.com/takac/vim-hardtime https://github.com/takac/vim-hardtime
- smackeyacky 3y agoSo am I. Not all terminals actually had cursor keys.
- ykonstant 3y agoIdeally, you would never need to adjust motion by a random number of characters; you would use semantic motion by text object, making hjkl a rare corrective move. In practice, we are only humans, so...