How to replace a single word under cursor?

后端 未结 5 1558
广开言路
广开言路 2021-01-29 18:38

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

5条回答
  •  独厮守ぢ
    2021-01-29 19:15

    Try cw - as in 'change word'.

    Use http://linuxmoz.com/vi-commands-cheat-sheet/ or any other cheat sheet as a reference.

提交回复
热议问题