- Is a specific function defined?
Use the exists function:
:echo exists("*funcname")
- What source file is a given function defined in?
Unfortunately, there is no direct way to do this. You should analyze the output :verbose function .
- What are the vimscript files that were received?
Again, there is no direct way to do this. You should :scriptnames output :scriptnames .
What big picture for what you are trying to do made you ask these questions? Perhaps there is a better way to achieve this without requiring answers to every question.
source share