How to tab (back, forward) a block of code in Vim?

Viewed 15835

How do you tab a block of code, to the right to the left, on Vim?

7 Answers

Place your cursor at start/end of block

Enter visual mode holding Shift+Alt (Shift+Option on macOS)

Use up/down arrows to select block

press > (to add a tab) or < (to remove a tab)

Related