News for hackers. Stuff that matters.
Re:Vimflowy by darrenf on Wednesday November 04, 2020 @02:24PM (#24992175)
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!

Re:Vimflowy by ysavir on Wednesday November 04, 2020 @02:42PM (#24992354)
It'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.
Re:Vimflowy by wraithy on Wednesday November 04, 2020 @03:19PM (#24992670)
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.

Re:Vimflowy by boogies on Wednesday November 04, 2020 @05:08PM (#24993543)
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.
Re:Vimflowy by mkl on Wednesday November 04, 2020 @07:46PM (#24994632)
Not if you're touch typing with any standard fingering I've seen. C is first finger, and E is middle finger.
Re:Vimflowy by michaelcampbell on Wednesday November 04, 2020 @08:08PM (#24994736)
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.

Re:Vimflowy by ybbond on Thursday November 05, 2020 @01:13AM (#24996043)
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
Re:Vimflowy by mkl on Thursday November 05, 2020 @01:57AM (#24996195)
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.
Re:Vimflowy by oogetyboogety on Wednesday November 04, 2020 @08:30PM (#24994870)
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.
Re:Vimflowy by kps on Wednesday November 04, 2020 @05:36PM (#24993763)
`cw` and `ce` don't do the same thing if you're on the last character of the word.
Re:Vimflowy by nightcracker on Wednesday November 04, 2020 @06:03PM (#24993977)
ciw does, and is what most people really want to begin with.
Re:Vimflowy by kps on Wednesday November 04, 2020 @06:39PM (#24994216)
`ciw` is a vimism, though.