News for hackers. Stuff that matters.
Re:Vim GIFs by city41 on Tuesday July 19, 2016 @07:08PM (#12125642)
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.

Re:Vim GIFs by Arnavion on Tuesday July 19, 2016 @09:47PM (#12126321)
>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.

Re:Vim GIFs by city41 on Tuesday July 19, 2016 @10:04PM (#12126381)
You 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")

Re:Vim GIFs by Arnavion on Tuesday July 19, 2016 @10:48PM (#12126529)
>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.