DEV Community

Discussion on: Vim quickies/ cheatsheet

Collapse
 
moopet profile image
Ben Sinclair

"Delete the word under cursor" should be diw, de only works for the same purpose if you're already at the start of the word.

"Replace mode (overtype)" should be R, r will only let you change a single character.

Collapse
 
jasper_zanjani profile image
Jasper Zanjani

Your comment made me go back to Oualline's Vim Book to research this. I totally did not know about the i and a motion commands! Great tip!

Collapse
 
rubiin profile image
Rubin

cool

Collapse
 
vlasales profile image
Vlastimil Pospichal

de is good for delete word from cursor to end. It is good for different purpose.