Notes

Home About Contact Archive
GitHub LinkedIn Twitter CoBUG.org

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
Tags: Vim, Erlang

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()

Made by qbit. Subscribe via RSS / Atom | Generated using boring and these files.
PGP: 0x1F81112D62A9ADCE / 3586 3350 BFEA C101 DB1A 4AF0 1F81 112D 62A9 ADCE
proof.