How do I replace every character in a visual selection with a single character?
r{char} in visual mode
In visual mode, pressing r followed by a character replaces every character in the selection with that single character.
28 results for "visual mode o"
r{char} in visual mode
In visual mode, pressing r followed by a character replaces every character in the selection with that single character.
:g/pattern/normal {cmd}
Combining :global with :normal lets you run any normal-mode keystrokes on every line that matches a pattern.
:Git blame
The vim-fugitive plugin by Tim Pope provides a powerful interactive :Git blame that goes far beyond the basic command-line git blame.
{count}{motion}
Almost every Vim motion and operator accepts a numeric count prefix that repeats or amplifies the action.
A
The A command moves the cursor to the end of the current line and enters insert mode.
<C-v>jjc replacement<Esc>
Visual block mode's change command lets you replace a rectangular column of text across multiple lines in a single operation.
visual-mode #editing #visual-mode #block-mode #normal-mode #productivity
[on / ]on / yon
The vim-unimpaired plugin by Tim Pope provides a consistent set of bracket-based mappings for toggling Vim options, navigating paired lists, and performing comm
:!command
The :!command syntax lets you execute any shell command directly from within Vim without leaving the editor.