How to indent a source code block in VIM?

VIM

VIM is a powerful editor with a rich ecosystem and many many features it’s used by many users around the world in their daily administrations and development tasks.

This tip is very useful if you want to use VIM (mainly) as your source code editor.

1. Select visual mode

Check: VIM a powerful and flexible text editor to know how change from one mode to another.

2. Select the block using these keys

↑ ↓

3. To indent right press

Shift >

4. To indent left press

Shift <

Spanish video


YouTube video


Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.