Using VIM to make erlang pretty

I recently read an article ( Which no longer exists :P ) talking about purtifying erlang. This inspired me to create a quick function in vim to do this for me!
Here it is:

function! ErlPretty()
    silent !erl -noshell -eval 'erl_tidy:file("%",[verbose]).' -s erlang halt
endfunction
nmap ep :execute ErlPretty()

Hopefully someone finds it handy!

Tags: ,

Leave a Reply