如何在vim中列出当前文件中的函数

Joh*_*ike 0 vim

我是vim的新手,想知道如何在vim中列出当前文件中的所有函数.

rom*_*inl 6

如何在vim中列出当前文件中的任何内容

列出模式的所有实例的最基本命令是:help :global:

:g/foo      " if you have line numbers enabled
:g/foo/#    " if you don't
Run Code Online (Sandbox Code Playgroud)

因此,要列出函数,您可以执行以下操作:g/^func:

:克/ ^ FUNC

然后:78<CR>跳转到qf#GetList().