Re: Variable replacement/interpolation/dereferencing(?)

2010-01-20 Thread Ben Fritz
On Jan 19, 1:36 am, Benjamin R. Haskell v...@benizi.com wrote: I was trying to loop over parent directories to find cscope.out files.   And I don't quite grok the following: Why does this print 'blah': :let file = blah | echo file while this complains that 'file' isn't found: :let file

Re: Variable replacement/interpolation/dereferencing(?)

2010-01-20 Thread Tom Link
While the :echo command takes an expression, the :cs add command takes a file name. The commands expect completely different arguments. You will NEED to use :exec in order to dynamically build a :cs command. I think the analogy to lisp macros actually is quite adequate since it seems to be the

Re: Variable replacement/interpolation/dereferencing(?)

2010-01-20 Thread Matt Wozniski
On Wed, Jan 20, 2010 at 11:23 AM, Ben Fritz wrote: I have additionally found (at least on Windows) that the :cs add command will NOT work with spaces in the path. Not sure why, but I've The backend code for it uses strtok() to split its argument apart on spaces, rather than following vim's

Variable replacement/interpolation/dereferencing(?)

2010-01-18 Thread Benjamin R. Haskell
I was trying to loop over parent directories to find cscope.out files. And I don't quite grok the following: Why does this print 'blah': :let file = blah | echo file while this complains that 'file' isn't found: :let file = blah | cs add file Just like with LISP, there's something about Vim