gv โ Re-Select
Bring back the last visual selection.
gv re-enters Visual mode with the same selection you last had โ same shape, same endpoints. Essential for re-applying an operator to the same region.
gv โ Re-Select
gv re-enters Visual mode with the exact same selection you last had โ same shape, same lines, same characters.
| Key | Note |
|---|---|
| V5j | Select 6 lines |
| > | Indent โ selection lost |
| gv | Bring it back |
| > | Indent again |
| gv> | Or just gv> repeatedly |
Worked example โ gv
Re-select the previous visual region.
gv is great for chained visual operations.
Watch
- ๐บ #0444 Block Append (not yet published)
- ๐บ #0445 :'<,'> โ Visual Range (not yet published)
See also: Visual + Ex Range, Operators on Visual Selections