You didn't specify which language or file type you were editing, and that can matter. It also matters what's in your
~/.vimrc (and possibly system-wide vimrc). However, I can offer one bit of advice. Try clearing your 'equalprg' option:
Then run your
= indent motion again. If that works, you will want to find out what is setting your 'equalprg' option for you so you can stop it from happening. To do this, restart vim and type (with the question mark as part of the command):
:verbose set equalprg?
Vim has very powerful indent features, and usually it is enough to have this line in your
:filetype indent on
This enables per-filetype indent plugins, which generally sets up the necessary indent options (there are a few) for you based on the current language or filetype. You may want to look at: