Friday, January 29, 2010

Re: how to use string variable for "cs add" command

On 2010-01-28, sc wrote:
> On Thursday 28 January 2010 09:31:07 pm Ni, Ruiyu wrote:
>
> > Thanks pansz!
> > It works!!
> >
> > But I found ctags cannot work as well.
> >
> > let CodeRoot = "E:/code"
> > let TagsDb = CodeRoot . "/tags"
> >
> > use
> > exe "set tags = " . TagsDb
> > or
> > set tags = TagsDb
> >
> > both cannot work. Do you have any idea? Thanks in advance!
>
> from
>
> :help set
>
> i see "White space between '=' and {value} is not allowed." -- so
> you should probably try
>
> exe "set tags=" . TagsDb

Or you could use let:

let &tags = TagsDb

See

:help let-&

Regards,
Gary


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: