Monday, July 19, 2010

Re: How to list all C function name in vim

Hi Javier!

On Fr, 02 Jul 2010, Javier Rojas wrote:

> 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.

you could also use vimgrep, e.g. for the vim source, I use something
like this:

:vimgrep /^\w\+\ze(/j %

or you could use an even fancier method by filling the quickfix list or
location list window using setqflist() or setloclist() function
manually. But this would require a little bit scripting and probably
isn't worth the trouble.

Mit freundlichen Grüßen
Christian
--
Viele Gedenkminuten hätten durch Denkminuten verhindert werden können.
-- Hoimar von Ditfurth

--
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: