How do you delete a visual selection?
d in visual mode
Select text visually and press d to delete the selection.
432 results for "visual mode"
d in visual mode
Select text visually and press d to delete the selection.
gq in visual mode
Select text with v or V, then press gq to format the selection according to textwidth.
c in visual mode
Select text visually, then press c to delete the selection and enter insert mode.
~ (in visual mode)
In visual mode, pressing ~ toggles the case of every character in the selection.
u (in visual mode)
In visual mode, pressing u converts all selected text to lowercase.
"_dP in visual mode
Use "_dP which deletes the selection into the black hole register and pastes before.
zf (in visual mode)
In visual mode, pressing zf creates a manual fold from the selected lines.
y (in visual mode)
In visual mode, pressing y yanks (copies) the selected text into the default register.
"ap
In visual mode, "ap replaces the selected text with the contents of register a.
v$
Press v to enter character-wise visual mode, then $ to extend selection to the end of the line (excluding the newline).
v'a
Press v for visual mode, then 'a to extend the selection to mark a.
<C-v>jjr*
Enter visual block with , select a column with j, press r followed by the replacement character.
U (in visual mode)
In visual mode, pressing U converts all selected text to uppercase.
<C-v>jj<C-a>
Select numbers with visual block mode , then press to increment all selected numbers by 1.
<C-v>jjA text <Esc>
Enter visual block with , select lines with j, press A to append after the block.
<C-v>jjI text <Esc>
Enter visual block with , select lines with j, press I to insert before the block.
visual select + d, move, P
To swap two pieces of text, delete the first selection, navigate to the second, select it, and paste.
<C-v>jjg<C-a>
Select a column of identical numbers with , then press g to create an incrementing sequence (1,2,3.
O in visual block mode
In visual block mode (), pressing O (uppercase) moves the cursor to the diagonally opposite corner of the rectangular selection.
p (in visual mode)
In visual mode, pressing p replaces the selected text with the contents of the default register.