Friday, February 26, 2010

Re: how to use cscope find command with a variable?

On 2010-02-26, "yixiaodafang@gmail.com" <yixiaodafang@gmail.com> wrote:
> Hi,
>
> I am writing a script to run the cscope. I have a string passed from
> function call, the string can be l:tmp='test'. The cscope command cs
> find s l:tmp will try to find l:tmp instead of the string test. Does
> anyone know how to fix this?

exe 'cs find s' l:tmp

See

:help :exe

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: