This is the thing I have to do from time to time and I never remember how to do:
https://stackoverflow.com/questions/235839/indent-multiple-lines-quickly-in-vi
And this what works for me:
Key presses for more visual people: 1- Enter Command Mode: Escape 2- Move around to the start of the area to indent: hjkl↑↓←→ 3- Start a block: v 4- Move around to the end of the area to indent: hjkl↑↓←→ 5- Type the number of indentation levels you want 0..9 6- Execute the indentation on the block: >
Let’s see if I can remember it…