On Mon, 08 Jun 2009 13:13:44 +0800, <[email protected]> wrote:

> Hi,
> I want to write a function to list all the function names within a given
> script, but I do not know how to get it started.
> Anyone can help me out?
>
> Thanks,
> Wilson
> >

I think it's no so difficult, below is a func for listing all lines that  
has definition of a function(I haven't tested it):

func! Listfunc()
if &ft=vim
for l in range(1, line("$")
if match(getline(l), '^\s*func.*()' != -1
echo getline(l)
endif
endfunc

-- 
Hi,
Wu, Yue

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to