diff --git a/README.md b/README.md index b01a0c1..93e75fe 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [NETRW Listing Styles](vim/netrw-listing-styles.md) - [Opening a URL](vim/opening-a-url.md) - [Preview Buffer](vim/previous-buffer.md) +- [Previous Visual Selection](vim/previous-visual-selection.md) - [Quick File Info](vim/quick-file-info.md) - [Quick Man Pages](vim/quick-man-pages.md) - [Quick Quickfix List Navigation](vim/quick-quickfix-list-navigation.md) diff --git a/vim/previous-visual-selection.md b/vim/previous-visual-selection.md new file mode 100644 index 0000000..4a42279 --- /dev/null +++ b/vim/previous-visual-selection.md @@ -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.