News for hackers. Stuff that matters.
Re:Show HN: I built an online interactive course that helps ... by rossmohax on Wednesday January 20, 2021 @02:44PM (#25851008)
> but you could use y2aw if you were in the middle of a word.

Wow, how does it work? Why y3aw doesn't fully work for 3 words (it captures space before the word I started with)?

Re:Show HN: I built an online interactive course that helps ... by vbrandl on Wednesday January 20, 2021 @04:03PM (#25851952)
y2iw should copy without enclosing spaces. My mnemonic is "inner word" vs. "a word".
Re:Show HN: I built an online interactive course that helps ... by gnubison on Wednesday January 20, 2021 @04:58PM (#25852549)
Playing around with this, [count]iw seems to have some really strange behavior — I need to do 3iw to select two words, 5iw to select three words, etc.? I'm not sure if I'm missing something. (I normally don't use many text objects; bdw is in my muscle memory instead of daw, for example.)
Re:Show HN: I built an online interactive course that helps ... by _proofs on Wednesday January 20, 2021 @10:34PM (#25855052)
perhaps whitespace token is considered a word:

2 words 1 spaces = 3 tokens 3 words 2 spaces = 5 tokens 4 words 3 spaces = 7 tokens ... maybe?