How do I replace exactly N consecutive characters with the same character without entering visual mode?
The {count}r{char} command replaces a precise number of characters starting at the cursor position with a single repeated character.
category:
editing
tags:
#editing
#normal-mode
#replace
#motions
How do I replace a character while preserving screen column alignment when tabs are involved?
The gr{char} command is Vim's virtual replace variant of r{char}.
category:
editing
tags:
#editing
#normal-mode
#replace
#tabs
How do you replace text with a newline in Vim?
In the replacement part, use \r to insert a newline.
category:
search
tags:
#search
#replace
#newline
How do you replace a column of characters in visual block mode?
Enter visual block with , select a column with j, press r followed by the replacement character.
category:
visual-mode
tags:
#visual
#block
#replace
How do I replace every character in a visual selection with a single character?
In visual mode, pressing r followed by a character replaces every character in the selection with that single character.
category:
visual-mode
tags:
#visual-mode
#editing
#replace
#selection
How do I overwrite existing text character by character without deleting first?
Replace mode lets you type over existing text one character at a time, like the "Insert" key behavior in traditional editors.
category:
editing
tags:
#editing
#normal-mode
#insert-mode
#replace