News for hackers. Stuff that matters.
Re:The Efficiency of Vim by theonething on Wednesday February 26, 2025 @11:03PM (#43191229)
Nope, you go to the word, do 'cw' (change word). That deletes the word under your cursor and automatically puts you in insert mode. Then you write your new word. I love it.
Re:The Efficiency of Vim by cka on Wednesday February 26, 2025 @11:22PM (#43191332)
Or 'caw' if you want to change the whole word, even if cursor is in the middle somewhere. I read it as "change a word".
Re:The Efficiency of Vim by theonething on Thursday February 27, 2025 @12:32AM (#43191646)
hmm.. I've always used 'ciw'. What's the difference with 'caw'?
Re:The Efficiency of Vim by xigoi on Thursday February 27, 2025 @04:34AM (#43192712)
ciw only deletes the letters, whereas caw also deletes one surrounding space. It’s more useful for other operations such as copying (yaw).