4 ms·
I’ve never found the cw/dw case illogical. When I’m deleting a “word” (in prose or code) it’s rarely, perhaps never, my intention to leave a double space betwee
by darrenf 6y ago
I’ve never found the cw/dw case illogical. When I’m deleting a “word” (in prose or code) it’s rarely, perhaps never, my intention to leave a double space between the surrounding words. But if I am changing one, the likelihood is that I’ll want to trailing space to remain after I type the replacement.
So whilst I see nothing illogical, I’m in agreement that a change to these commands would throw me!
- ysavir 6y agoIt's practical, but it's not logically consistent with what's considered a "word" in Vim. "Delete word" and "Delete until next word" are two different functionalities, so there's an inconsistency when a function shortcut is named to represent the former, but behaves like the latter.
- wraithy 6y agoThere'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.
- boogies 6y agoI'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.
- mkl 6y agoNot if you're touch typing with any standard fingering I've seen. C is first finger, and E is middle finger.
- michaelcampbell 6y agoYou 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:FingerHandPosUSA.gif https://en.wikipedia.org/wiki/Touch_typing#/media/File:Finge... - http://www.typingme.com/touch-typing/typing-lesson-9.php http://www.typingme.com/touch-typing/typing-lesson-9.php - https://agilefingers.com/articles/touch-typing-finger-placement https://agilefingers.com/articles/touch-typing-finger-placem... - https://www.computerhope.com/issues/ch001346.htm https://www.computerhope.com/issues/ch001346.htm - https://www.ratatype.com/learn/ https://www.ratatype.com/learn/ and on and on.
- oogetyboogety 6y agoDidn't even realize I use index finger for c until you mentioned it. Turns out I should be using my E/middle finger. Hm.
- ybbond 6y agoI 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
- mkl 6y agoThat'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.
- kps 6y ago`cw` and `ce` don't do the same thing if you're on the last character of the word.
- nightcracker 6y agociw does, and is what most people really want to begin with.
- kps 6y ago`ciw` is a vimism, though.