Tuesday, June 26, 2012

Re: What does the second example for map() mean?

On Tue, Jun 26, 2012 at 09:56:48PM EDT, Benjamin R. Haskell wrote:

> There's an example in the help for map() that reads:
>
> :let tlist = map(copy(mylist), ' & . "\t"')
>
> What is that ampersand doing there? Is the example incomplete?
> Obsolete? Should it be v:val instead?

Yes. Looks like someone was making quick changes to the doc and used '&'
to recall the last match and somehow, a literal ampersand ended up in
there instead...

Now.. How's that for guesswork? :-)

CJ

--
Alex Perez is aliveeeeeeee!!!

--
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: