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

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


If I get you right it is gv.

You can also remap > and <:

xnoremap > >gv
xnoremap < <gv

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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