On Sat, Aug 12, 2006 at 07:45:08PM +1000, Mark Woodward wrote: > On Sat, 12 Aug 2006 19:32:20 +1000 > an obvisouly dazed Mark Woodward wrote: > > > if stridx(s:line,"function") >= 0 > > s:funcname = matchstr(s:line,"function \zs\w\+") > > ^^^^^^^^^^^ > > s:funcname = matchstr(s:line, 'function \zs\w\+') > > single quotes!!!
... and do not forget the "let": let s:funcname = matchstr(s:line, 'function \zs\w\+') HTH --Benji Fisher