Friday, January 29, 2010

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

Thank you sc & pansz! Both works now!!

-----Original Message-----
From: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] On Behalf Of sc
Sent: Friday, January 29, 2010 12:53 PM
To: vim_use@googlegroups.com
Subject: Re: how to use string variable for "cs add" command

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

sc

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

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

No comments: