I often select a region in visual mode for properly indenting it. However, after pressing for example 3>, visual mode exits and the selection disappears.

How can I re-select the previously selected region, so that I may further edit it?

1 Answer 1


If I get you right it is gv.

You can also remap > and <:

xnoremap > >gv
xnoremap < <gv
  • xnoremap, please
    – D. Ben Knoble
    Commented Apr 10, 2020 at 12:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.