Replace Multiple Letters VIM Command

How to use Replace Multiple Letters Command in Linux VIM editor?

Explanation


<count>r<char> stands for replace multiple Character
This is a command used to replace multiple character from the current cursor position.

Usage:

<count>r<char>

Example:

  • Open the file test.txt using the command
    $ vim test.txt
  • We can notice the text in the file.
    Hiox India
    Vim Tutorial
    Hiox India

  • Let us see how to replace the word 'Vim' by 'A'.
  • Move the cursor to the position. To replace the letters
    Press 3rA
  • The text after the replacement will be as follows,
    Replace Multiple Letters Vim Command

Ask Questions

Ask Question