1

It is really annoying, especially when I need to indent more than one level.

1
  • Why was this downvoted? It was a good question. – kzh Jul 24 '13 at 21:46
4

The following mappings will re-select the visual selection:

:vnoremap > >gv
:vnoremap < <gv

Note that you can also provide a [count] to de-/indent multiple levels at once.

0
1

You can repeat the last un/indent like other changes with the single-repeat command, the dot .. The repeated command spans the same region as before.

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.