Re: reformat c code

2007-10-26 Fir de Conversatie Shafik
Thanks Ben, That is what I needed On Oct 26, 8:42 am, Ben Schmidt [EMAIL PROTECTED] wrote: Hi, a beginner question, can I reformat entire file code from: if (...) { // some action } to: if (...) { // some action } Thanx. The '=' command will reformat code.

Re: reformat c code

2007-10-26 Fir de Conversatie Ben Schmidt
Hi, a beginner question, can I reformat entire file code from: if (...) { // some action } to: if (...) { // some action } Thanx. The '=' command will reformat code. gg=G will do from top to bottom (whole file). But you have to set the indent options to what you want

Re: reformat c code

2007-10-26 Fir de Conversatie tulv88
i think the indent utility may help 2007/10/26, Gary Johnson [EMAIL PROTECTED]: On 2007-10-26, Ben Schmidt [EMAIL PROTECTED] wrote: Hi, a beginner question, can I reformat entire file code from: if (...) { // some action } to: if (...) { // some action

Re: reformat c code

2007-10-26 Fir de Conversatie Gary Johnson
On 2007-10-26, Ben Schmidt [EMAIL PROTECTED] wrote: Hi, a beginner question, can I reformat entire file code from: if (...) { // some action } to: if (...) { // some action } Thanx. The '=' command will reformat code. The '=' command does not reformat

What happened to the FTP repository?

2007-10-26 Fir de Conversatie Tony Mechelynck
The FTP repository ftp://ftp.vim.org/pub/vim/patches/7.1/ is now back to 7.1.135, both in individual patches and in the README file. What happened to the ten latest patchlevels? Best regards, Tony. -- I have come up with a sure-fire concept for a hit television show, which would be called

Re: reformat c code

2007-10-26 Fir de Conversatie Ben Schmidt
The '=' command does not reformat code--it indents code. In particular, the '=' command will not move the opening brace from one line to another. O yeah. Duh. What was I thinking?! Maybe I was thinking of gq and some set of formatoptions that might possibly make it work...dunno...never

test for mode_t on QNX

2007-10-26 Fir de Conversatie Sean Boudreau
Hi: vim-7.1 I had to make the following change to explicitly bring in sys/types.h for the test for mode_t to work. I tried under NetBSD for comparison and on that platform sys/types.h happens to be brought in by either stdlib.h or unistd.h but that's not standard. Regards, -seanb