Thursday, July 1, 2010

Re: How to list all C function name in vim

On Fri, Jul 02, 2010 at 10:35:24AM +0900, robert song wrote:
> Hi, everyone.
>
> Is there any plugin to list all C function name of a C file in Quickfix list,
> also with the glocal and local variables. It's helpful to get a
> general view of the file.

you might like the folding feature. Read about it here

:help usr_28

and in this case, you want folding by syntax, which works out of the box
with c/c++ files. See

:help 28.7

to get folding on your C/C++ file, do a

:set foldmethod=syntax

on the file

--
Javier Rojas

GPG Key ID: 0x24E00D68

No comments: