mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add Previous Visual Selection as a vim til.
This commit is contained in:
7
vim/previous-visual-selection.md
Normal file
7
vim/previous-visual-selection.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Previous Visual Selection
|
||||
|
||||
Typing `gv` in normal mode will re-select the previous visual selection.
|
||||
This makes it easy to re-select a specific block of text. For instance, if
|
||||
you are performing a search and replace on a visual selection and you didn't
|
||||
get the regex quite, you can quickly type `gv` and then edit the regex of
|
||||
your previous command.
|
||||
Reference in New Issue
Block a user