Erlang-indent-file is a project mainly written in Vim Script, it's free.
Erlang indent file
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2023
This is an indent file for Erlang.