News for hackers. Stuff that matters.
Re:I don't need your query language by PhilipRoman on Saturday June 17, 2023 @08:07AM (#36369520)
I think these two concepts could be reconciled by having selection be combined with moving. So 3w could select three words but also move the cursor to the end of selection, ready to process another normal mode command. The highlighting would need to be scaled back a little (perhaps a dark gray background), as you don't want your entire screen to light up when moving but I think it's doable.
Re:I don't need your query language by SaidinWoT on Saturday June 17, 2023 @09:17AM (#36369935)
That's exactly the model used by the Kakoune editor[0]. It definitely feels more intuitive to me, but I personally didn't stick with it due to vim's ubiquity.

[0] https://kakoune.org

Re:I don't need your query language by Kamq on Saturday June 17, 2023 @11:44AM (#36371202)
> So 3w could select three words but also move the cursor to the end of selection

I mean, if you hit v first, that's exactly what it does.

Re:I don't need your query language by PhilipRoman on Saturday June 17, 2023 @03:14PM (#36373510)
Yes, but in terms of editing speed and comfort, one keystroke is the difference between life and death. As long as the motion can be described in a single command, visual mode is overkill.
Re:I don't need your query language by Kamq on Sunday June 18, 2023 @03:55AM (#36378189)
Wouldn't what you're proposing complicate the rest of normal mode though?

Or is this just reversing the order so it's {motion}{verb} instead of {verb}{motion}?