Add lvimrc to automatically format code to the desired style

Users of other editors are encouraged to do something similar to this.
This commit is contained in:
Sam Dodrill 2014-09-16 20:27:24 -07:00
parent 1bb06bb3d0
commit 219934c7ce
1 changed files with 2 additions and 0 deletions

2
.lvimrc Normal file
View File

@ -0,0 +1,2 @@
au BufWritePost *.c execute 'silent !astyle --style=linux --mode=c -n' shellescape(expand('%'), 1) ' >/dev/null'
au BufWritePost *.h execute 'silent !astyle --style=linux --mode=c -n' shellescape(expand('%'), 1) ' >/dev/null'