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 combination to replace the word under the cursor?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(change inner word) will change the whole word under the cursor. Compare with
which will only change the word from the current cursor position. For more info see this SO question/answer.