Using VIM to make erlang pretty
Quick hack to format erlang code in vim
Posted on Fri, 12 Mar 2010 12:15:00 MST by Aaron Bieber
I recently read an article ( Which no longer exists ) 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()