I'm new to vim and wanted to know how I can list all functions inside the current file within vim.
How can I list anything in the current file in vim?
The most basic command for listing all instances of a pattern is :help :global
:
:g/foo " if you have line numbers enabled
:g/foo/# " if you don't
So, to list functions you would do something like :g/^func
:
and then :78<CR>
to jump to qf#GetList()
.
Try this: I mapped to Ctrl-f (list functions) but you can map to any key you like Press Ctrl-f will list the functions. Then issue ":"line_no
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With