Replace VIM Command
How to use Replace Command in Linux VIM editor?
Explanation
r<char> stands for replace
This is a command used to replace a single character in the current cursor position.
Usage:
r<char>
Example:
Steps to replace letter in file using the vim editor.
- 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
- Move the cursor to third line using the arrow keys.
- Using the command replace the letter 'H' by 'A
Press rA
- The text after the replacement