Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
theonething
· 1y ago · 0 comments
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.
Comments
[–]
cka
1y ago
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".
[–]
theonething
OP
1y ago
hmm.. I've always used 'ciw'. What's the difference with 'caw'?
[–]
xigoi
1y ago
ciw only deletes the letters, whereas caw also deletes one surrounding space. It’s more useful for other operations such as copying (yaw).