Hacker News new | ask | show | jobs
by wraithy 2053 days ago
There's always "ce" (change until end of word), which enables the common use case and is also consistent with the rest of the vim language.

I wonder why the special case for "cw" exists... I'd love to hear the story about that initial decision.

2 comments

I'd guess just because cw is much easier/faster to type (because c and e are pressed with the same finger) on a QWERTY keyboard.
Not if you're touch typing with any standard fingering I've seen. C is first finger, and E is middle finger.
You might need to look around more. The wikipedia article shows 'c' on the middle finger, like I was taught. I can't imagine doing it with the first finger, but I suppose it just depends on how you were taught.

Looking around, I can't even FIND a "c on first finger" fingering.

- https://en.wikipedia.org/wiki/Touch_typing#/media/File:Finge...

- http://www.typingme.com/touch-typing/typing-lesson-9.php

- https://agilefingers.com/articles/touch-typing-finger-placem...

- https://www.computerhope.com/issues/ch001346.htm

- https://www.ratatype.com/learn/

and on and on.

I did watch me and my friends' touch typing behavior, and most of us use left index finger for RFCVGT(B), and right index finger for YUHJ(B)NM. the character in parenthesis means it overlaps between right and left area
That's what I do. I'm clearly wrong about the fingering charts though (I learned from an ancient DOS program, so I can't check that one). I have a picture of a symmetrical one in my head; C is the equivalent of M, so it seems like they should use the same finger.
Didn't even realize I use index finger for c until you mentioned it. Turns out I should be using my E/middle finger. Hm.
`cw` and `ce` don't do the same thing if you're on the last character of the word.
ciw does, and is what most people really want to begin with.
`ciw` is a vimism, though.