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


The tutorials here on LibreByte are provided under a free software licence. if you like my work you should consider:
Buy a Hosting/VPS or Dedicated Server at MCKHost

Leave a Reply

Your email address will not be published.

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