You can indent or unindent lines using the angle bracket keys followed by a motion command to indicate the lines to be operated on. The '=' command allows you to auto indent code.
This video is based on my "Vim Reference Guide" ebook: https://github.com/learnbyexample/vim...