3 ms·
vim has an initial hurdle of being extremely unintuitive. But once you start learning the vim "language", you find it builds on itself and intuitiveness increas
by city41 10y ago
vim has an initial hurdle of being extremely unintuitive. But once you start learning the vim "language", you find it builds on itself and intuitiveness increases a lot.
For example d is the delete command and w is the "move by word" command, so dw is "delete word". / is the search command, so /foo searches for the first instance of foo in the document. You can intuitively figure out that d/foo is "delete everything until the first found foo", and that is exactly what it does.
- Arnavion 10y ago>You can intuitively figure out that d/foo is "delete the first found foo" Makes more sense to me than "delete everything until the first found foo" at any rate. Intuitiveness is subjective.
- city41 10y agoYou wouldn't think that if you used vim. I don't want to turn these comments into a vim tutorial so I simplified it a bit. But in the framework of vim, d/foo and what it does is totally intuitive and easy to figure out on your own. With vim when you learn a new command it applies to all the movements you know and vice versa. EDIT: rereading my comment, I should have said "/foo moves to the first instance of foo in the document" to correlate how / is a movement just like w is a movement (w is "move by one word")
- Arnavion 10y ago>EDIT: rereading my comment, I should have said "/foo moves to the first instance of foo in the document" to correlate how / is a movement just like w is a movement (w is "move by one word") Yes, then it makes much more sense.