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