Hi,
SHANKAR R-R66203 wrote:
>
> I am actually having a little bit complicated situation.
> Inside a search() fucntion, can I use, variables.
> The part of the code is given below.
>
>
> let rs_sig = expand("<cword>")
> exec '1'
> exec '/^\s*module\s\+\w\+'
> let rs_line=getline(".")
> let rs_ModuleName=matchstr(rs_line,"\\<\\w\\+\\>",0,2)
> exec 'tabedit D:\Profiles\r66203\_tags\LF\debussy.harlech'
> if search('/^' . rs_sig . '\t' . rs_ModuleName . '\t') != 0
^^
the slash is not needed.
> echo "Got the signal inside a module"
> else
> echo "Not got it"
> endif
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)