Thursday, July 22, 2010

Re: format c program

Try filtering it through artistic style:

http://astyle.sourceforge.net/

I use:

map <f7> :%!C:/cygwin/bin/astyle --style=ansi<cr>
map! <f7> <Esc>:%!C:/cygwin/bin/astyle --style=ansi<cr>

--
====================================
'Do' or 'Do Not.'   http://powertwenty.com/kpd/blog
There is no 'Try.'                                      
-Yoda

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment