Replace selection with a character
r{char}
Example
Visual 0 / 1Normal 1 / 1one two
three four
five sixCursor on line 1, column 3 · Character selectionXXX two
three four
five sixCursor on line 1, column 1Replace selection with a character.
Replace selection with a character
Before & after
one two
three four
five sixCursor on line 1, column 3 · Character selectionXXX two
three four
five sixCursor on line 1, column 1Start in Visual mode. The highlighted area is observed in Vim. Any displayed register boxes show the exact copied or deleted contents.
Details & Vim help
Example replayed in Vim
Replace selection with a character. Use in Visual mode. Braced names stand for the required argument and are not typed literally. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.