My AStyle arguments
The settings I used in my vimrc for code formatting:
" Need astyle installed
autocmd BufNewFile,BufRead *.c set formatprg=astyle\ -A1xjxVpSNYk1Hm0xwxWO
autocmd BufNewFile,BufRead *.cpp set formatprg=astyle\ -A1xjxVpSNYk1Hm0xwxWO
" Uses mz to mark in register z
nnoremap <F7> mzgggqG`z
Below are the meanings of the arguments in -A1xjxVpSNYk1Hm0xwxWO