Making Small Edits
In this lesson, you will learn how to make small edits to your text using the s, x, and r operators.
x
Example
s
Example
r
Example
When to use r vs s
The r operator is useful when you want to replace a single character with another character. It's a nice way to quickly correct a typo without leaving normal mode.
The s operator is useful when you want to replace a single character with multiple characters via insert mode.