Friday, March 1, 2013

Re: vim edit help

Excerpts from vicky b's message of Thu Feb 28 19:33:23 +0100 2013:
> I have text in below format
> var illness = new
> Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlRepMedEi","tvlMdRp","tvlRrepdsc","tvlPolRep")
>
> i need to convert it
>
> var illness = new dojox.collections.ArrayList();
> illness.add("tvlPlyCp");
> illness.add("tvlPlcyCertID")
[..]

Why? it will be more bytes to sent to the client.
dojox documentation says there is addRange(array) - maybe it just
does what you're looking for.

If not you can create a helper function, too:

funtion new_dojox_collection(){
var r = new ..
for each elem in argumets
r.add(elem)
return r;
}

You can solve it by vim, but you don't have to. such shortuts can make
sense if you use them a lot.

Marc Weber

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: