Shortcut
Vim Reselect the Previous Selection Shortcut
The Vim shortcut to reselect the previous selection is gv on Windows. It's the same on Mac.
Quick Answer
- Windows
- gv
- Mac
- gv
- Web
- Not confirmed yet
VimShortcut
Reselect the Previous Selection
Brings back the highlight you just dropped.
How to reselect the previous selection in Vim
- Open Vim and go to where you want to reselect the previous selection.
- Press gv on Windows or gv on Mac.
Vim Reselect the Previous Selection Shortcut for Windows
Press gv.
Vim Reselect the Previous Selection Shortcut for Mac
Press gv.
Vim Reselect the Previous Selection Shortcut for Vim Web
We haven't confirmed a Vim Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the Vim reselect the previous selection shortcut?
On Windows, press gv. On a Mac, press gv.
Is there a Mac shortcut to reselect the previous selection in Vim?
Yes: gv.
Does it work in Vim for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify