How do I replace a word under the cursor in Vim.
So instead of using dw then i then the word and then Esc, is there a simpler com
dw
i
Esc
ciw
c change iw inner word
This will delete the word under the cursor (even if the cursor is somewhere in the middle of the word) and enter insert mode.
Also see Vim's documentation for reference:
:help c :help text-objects