Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-13 Thread Yakov Lerner
On 9/13/06, Gundala Viswanath [EMAIL PROTECTED] wrote: Dear Tony and all, My Linux box indeed hasn't got cb, but it has got indent which is meant to beautify and reformat C code, e.g. by adding and removing spaces, tabs, linefeeds and blank lines, according to various parameters on a

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-12 Thread A.J.Mechelynck
Gundala Viswanath wrote: Thanks Yakov, gg=G :help = But it seems to me that works on Global basis strictly. How can we localize the cleanup within a visual block? Moreoever how can we customize the indentation, bracing, etc? Since with Perl this customization is captured within

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-12 Thread Charles E Campbell Jr
Gundala Viswanath wrote: Thanks Yakov, gg=G :help = But it seems to me that works on Global basis strictly. How can we localize the cleanup within a visual block? Moreoever how can we customize the indentation, bracing, etc? Since with Perl this customization is captured within

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-12 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: Gundala Viswanath wrote: Thanks Yakov, gg=G :help = But it seems to me that works on Global basis strictly. How can we localize the cleanup within a visual block? Moreoever how can we customize the indentation, bracing, etc? Since with Perl this

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-12 Thread Chris Sutcliffe
Sent to the list this time... sorry Tony! On 9/12/06, Chris Sutcliffe [EMAIL PROTECTED] wrote: My Linux box indeed hasn't got cb, but it has got indent which is meant to beautify and reformat C code, e.g. by adding and removing spaces, tabs, linefeeds and blank lines, according to various

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-12 Thread Yegappan Lakshmanan
On 9/12/06, Chris Sutcliffe [EMAIL PROTECTED] wrote: On 9/12/06, Chris Sutcliffe [EMAIL PROTECTED] wrote: My Linux box indeed hasn't got cb, but it has got indent which is meant to beautify and reformat C code, e.g. by adding and removing spaces, tabs, linefeeds and blank lines, according

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-12 Thread Gundala Viswanath
Dear Tony and all, My Linux box indeed hasn't got cb, but it has got indent which is meant to beautify and reformat C code, e.g. by adding and removing spaces, tabs, linefeeds and blank lines, according to various parameters on a command-line and/or in a config file; GNU indent supports

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-12 Thread A.J.Mechelynck
Gundala Viswanath wrote: Dear Tony and all, My Linux box indeed hasn't got cb, but it has got indent which is meant to beautify and reformat C code, e.g. by adding and removing spaces, tabs, linefeeds and blank lines, according to various parameters on a command-line and/or in a config file;

Perltidy,VIM for C/C++ visual block cleanup

2006-09-11 Thread Gundala Viswanath
Dear Experts, One of the indispensable thing we can do with .perltidyrc and VIM is that we can hightlight one block in VIM (visually) and do :! perltidy to cleanup (tidy up) just a block within a file. Can we do the same thing also in C/C++ environment as well under VIM as IDE? Please advice?

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-11 Thread Yakov Lerner
On 9/11/06, Gundala Viswanath [EMAIL PROTECTED] wrote: Dear Experts, One of the indispensable thing we can do with .perltidyrc and VIM is that we can hightlight one block in VIM (visually) and do :! perltidy to cleanup (tidy up) just a block within a file. Can we do the same thing also in

Re: Perltidy,VIM for C/C++ visual block cleanup

2006-09-11 Thread Gundala Viswanath
Thanks Yakov, gg=G :help = But it seems to me that works on Global basis strictly. How can we localize the cleanup within a visual block? Moreoever how can we customize the indentation, bracing, etc? Since with Perl this customization is captured within .perltidyrc. -- Gundala Viswanath