Hello Yakov,
One way is to have Vim fold the { } regions. I think this is already set up in
the C syntax, so you just need to ':set foldmethod=syntax'. You may also want
to ':set foldcolumn=4' (or whatever number works for you). Note how the left
side of the display shows you where each fold (each { } region) starts and
ends.
regards,
Peter
--- Yakov Lerner <[EMAIL PROTECTED]> wrote:
> It is easy to identify extra '}' in the .c source, compiler
> points us to the exact line. Rarely, I have the opposite error,
> the extra '{' somewhere in the source. For example
> int foo() {
> {
> ....
> }
> In this case, gcc points me to the end of file. This is not helpful.
> Can anyone suggest quick method of finding the function
> that contains extra '{' brace ?
>
> Thanks
> Yakov
>
Send instant messages to your online friends http://au.messenger.yahoo.com