Indenting Text using Vim

How you can go about indenting your text in the Vim text editor

There are several ways to do indenting using Vim, my current favourite is to do the following;

  1. Place your cursor where you want to begin to indent.
  2. Press V to select that line
  3. Move down the lines you want to indent using j
  4. Press > to indent, or < to outdent the selected text

Of course if you just want to indent or outdent one line you can type > or < when you are on that line.

Recent posts View all

Web DevProductivity

Keeping on top of website updates

Learn what website updates are, what they entail, why they are important, and how we can help

Freelancing

Getting the most out of your agency

Here are some tips based on years of working with, for, and as an agency on how to get the most out of any work you do.