Thursday, January 28, 2010

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

On Fri, 29 Jan 2010, 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!

The syntax for 'set' parameters is stricter than the syntax for 'let'
assignments. If you omit the spaces around the '=', the 'exe' version
should work:

exe "set tags=" . TagsDb

--
Best,
Ben

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

No comments:

Post a Comment