A vim plugin using gnu indent to auto format C source code.
You will need to install indent on your system to use this plugin.
If you are on a debian based system you can use apt to install it.
apt-get install indentInstall using Pathogen or Vundle then set this in your vimrc:
autocmd BufWritePre *.c,*.h CfmtYou can configure the style of formating by using the g:cfmt_style
variable.
let g:cfmt_style = '-linux'
let g:cfmt_style = '-kr'
let g:cfmt_style = '-gnu'Distributed under the same terms as Vim itself. See :help license.