Hacker News new | ask | show | jobs
by vbrandl 1973 days ago
y2iw should copy without enclosing spaces. My mnemonic is "inner word" vs. "a word".
1 comments

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.)
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?