5 ms·
> 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
by rossmohax 6y ago
> 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)?
- vbrandl 6y agoy2iw should copy without enclosing spaces. My mnemonic is "inner word" vs. "a word".
- gnubison 6y agoPlaying 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.)
- _proofs 6y agoperhaps 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?