Vim: How do I tell where a function is defined? (

Posted by sixtyfootersdude on Stack Overflow See other posts from Stack Overflow or by sixtyfootersdude
Published on 2010-05-16T17:26:01Z Indexed on 2010/05/16 17:30 UTC
Read the original article Hit count: 167

Filed under:
|
|
|

I just installed macvim yesterday and I installed vim latex today.

One of the menu items is calling a broken fuction (TeX-Suite -> view).

When I click on the menu-time it makes this call:

:silent! call Tex_ViewLatex()

Question: Where can I find that function? Is there some way to figure out where it is defined?


Just for curiosity sake I removed the silent part and ran this:

:call Tex_ViewLatex()

Which produces:

Error detected while processing function Tex_ViewLaTeX:
line   34:
E121: Undefined variable: s:viewer
E116: Invalid arguments for function strlen(s:viewer)
E15: Invalid expression: strlen(s:viewer)
line   39:
E121: Undefined variable: appOpt
E15: Invalid expression: 'open '.appOpt.s:viewer.' $*.'.s:target
line   79:
E121: Undefined variable: execString
E116: Invalid arguments for function substitute(execString, '\V$*', mainfname, 'g'
)
E15: Invalid expression: substitute(execString, '\V$*', mainfname, 'g')
line   80:
E121: Undefined variable: execString
E116: Invalid arguments for function Tex_Debug
line   82:
E121: Undefined variable: execString
E15: Invalid expression: 'silent! !'.execString
Press ENTER or type command to continue  

I suspect that if I could see the source function I could figure out what inputs are bad or what it is looking for. Thanks.

© Stack Overflow or respective owner

Related posts about gvim

Related posts about vim