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;
- Place your cursor where you want to begin to indent.
- Press V to select that line
- Move down the lines you want to indent using j
- 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.